Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007002/0.007002, allocations: 100.6 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 239.4 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 191.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4784/0.4784, allocations: 78.54 MB / 418.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 91.8 kB / 0.5532 GB, free: 1.426 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4034/0.4051, allocations: 68.16 MB / 0.6198 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01127/0.4165, allocations: 13.58 MB / 0.633 GB, free: 12.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009267/0.4258, allocations: 3.464 MB / 0.6364 GB, free: 9.062 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003656/0.4295, allocations: 28 kB / 0.6364 GB, free: 9.035 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002412/0.432, allocations: 0.5576 MB / 0.637 GB, free: 8.469 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007222/0.4392, allocations: 1.578 MB / 0.6385 GB, free: 6.891 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004696/0.444, allocations: 1.5 MB / 0.64 GB, free: 5.41 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.007025/0.451, allocations: 3.725 MB / 0.6436 GB, free: 1.668 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002207/0.4533, allocations: 0.8995 MB / 0.6445 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.4566, allocations: 1.529 MB / 0.646 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/0.4601, allocations: 1.952 MB / 0.6479 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001508/0.4617, allocations: 284 kB / 0.6482 GB, free: 12.94 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002039/0.4637, allocations: 439.7 kB / 0.6486 GB, free: 12.52 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001523/0.4653, allocations: 0.7624 MB / 0.6493 GB, free: 11.75 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003359/0.4687, allocations: 1.627 MB / 0.6509 GB, free: 10.11 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007584/0.4763, allocations: 3.966 MB / 0.6548 GB, free: 6.133 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4763, allocations: 0 / 0.6548 GB, free: 6.133 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4763, allocations: 0 / 0.6548 GB, free: 6.133 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002032/0.4765, allocations: 0 / 0.6548 GB, free: 6.133 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02468/0.5012, allocations: 6.587 MB / 0.6612 GB, free: 15.45 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.5013, allocations: 12.03 kB / 0.6612 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005232/0.5018, allocations: 303.2 kB / 0.6615 GB, free: 15.13 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01489/0.5167, allocations: 2.275 MB / 0.6638 GB, free: 12.85 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00521/0.522, allocations: 1.871 MB / 0.6656 GB, free: 10.91 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008716/0.5229, allocations: 0.7289 MB / 0.6663 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009955/0.5239, allocations: 216 kB / 0.6665 GB, free: 9.859 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006332/0.5303, allocations: 3.031 MB / 0.6695 GB, free: 6.75 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.281e-05/0.5304, allocations: 3.984 kB / 0.6695 GB, free: 6.746 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000245/0.5306, allocations: 87.94 kB / 0.6695 GB, free: 6.66 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.729e-05/0.5307, allocations: 48 kB / 0.6696 GB, free: 6.613 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005706/0.5364, allocations: 2.784 MB / 0.6723 GB, free: 3.812 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02033/0.5568, allocations: 9.79 MB / 0.6819 GB, free: 9.598 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/0.5674, allocations: 4.176 MB / 0.686 GB, free: 5.297 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004466/0.572, allocations: 1.964 MB / 0.6879 GB, free: 3.328 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004106/0.5724, allocations: 45.89 kB / 0.6879 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00507/0.5775, allocations: 2.232 MB / 0.6901 GB, free: 1.027 MB / 494.1 MB Notification: Performance of pre-optimization done (n=247): time 7.495e-06/0.5775, allocations: 0 / 0.6901 GB, free: 1.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=247): time 0.1221/0.6996, allocations: 29.47 MB / 0.7189 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.6998, allocations: 184.2 kB / 0.719 GB, free: 3.219 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004144/0.704, allocations: 2.277 MB / 0.7213 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000912/0.7049, allocations: 73.7 kB / 0.7213 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.706, allocations: 1.172 MB / 0.7225 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0016/0.7076, allocations: 0.8665 MB / 0.7233 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001296/0.7089, allocations: 0.5617 MB / 0.7239 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.709, allocations: 301.1 kB / 0.7242 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004273/0.7133, allocations: 1.951 MB / 0.7261 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004951/0.7183, allocations: 2.314 MB / 0.7283 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0537/0.772, allocations: 14 MB / 0.742 GB, free: 11.32 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.026e-05/0.7721, allocations: 7.938 kB / 0.742 GB, free: 11.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.03851/0.8106, allocations: 12.28 MB / 0.754 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.8108, allocations: 121.1 kB / 0.7541 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/0.8108, allocations: 8 kB / 0.7541 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01695/0.8278, allocations: 5.328 MB / 0.7593 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00303/0.8309, allocations: 0.5578 MB / 0.7599 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4677/1.299, allocations: 23.48 MB / 0.7828 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004425/1.303, allocations: 489.5 kB / 0.7833 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004861/1.304, allocations: 113.4 kB / 0.7834 GB, free: 121.2 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.00122/1.305, allocations: 0.5278 MB / 0.7839 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006382/1.305, allocations: 308.5 kB / 0.7842 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03355/1.339, allocations: 11.89 MB / 0.7958 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.784e-05/1.339, allocations: 27.66 kB / 0.7958 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.93e-05/1.339, allocations: 15.28 kB / 0.7958 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.522e-05/1.339, allocations: 22.86 kB / 0.7959 GB, free: 118.4 MB / 0.5606 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03915/1.378, allocations: 15.48 MB / 0.811 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.319e-05/1.378, allocations: 0 / 0.811 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/1.38, allocations: 247.7 kB / 0.8112 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0151/1.395, allocations: 5.283 MB / 0.8164 GB, free: 102.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007587/1.396, allocations: 47.98 kB / 0.8164 GB, free: 102.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04871/1.445, allocations: 24.94 MB / 0.8408 GB, free: 76.76 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.445, allocations: 0 / 0.8408 GB, free: 76.76 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03844/1.483, allocations: 14.26 MB / 0.8547 GB, free: 62.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/1.484, allocations: 416.2 kB / 0.8551 GB, free: 61.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009587/1.485, allocations: 48 kB / 0.8551 GB, free: 61.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003042/1.488, allocations: 295.6 kB / 0.8554 GB, free: 61.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002252/1.491, allocations: 0.5802 MB / 0.856 GB, free: 61.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/1.491, allocations: 68.11 kB / 0.8561 GB, free: 61 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002203/1.493, allocations: 1.511 MB / 0.8575 GB, free: 59.48 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.493, allocations: 0 / 0.8575 GB, free: 59.48 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004511/1.498, allocations: 1.174 MB / 0.8587 GB, free: 58.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03906/1.537, allocations: 14.9 MB / 0.8732 GB, free: 43.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01645/1.553, allocations: 6.699 MB / 0.8798 GB, free: 36.53 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/1.553, allocations: 0 / 0.8798 GB, free: 36.53 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01118/1.565, allocations: 4.405 MB / 0.8841 GB, free: 32.06 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002519/1.567, allocations: 271.7 kB / 0.8843 GB, free: 31.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0976/1.665, allocations: 41.26 MB / 0.9246 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00158/1.666, allocations: 1.806 MB / 0.9264 GB, free: 4.285 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001288/1.668, allocations: 262.5 kB / 0.9266 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/1.669, allocations: 1.233 MB / 0.9278 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of SimCode: time 1.472e-06/1.669, allocations: 4 kB / 0.9278 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1644/1.834, allocations: 89.59 MB / 1.015 GB, free: 9.375 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.04/20.88, allocations: 20.34 kB / 1.015 GB, free: 9.359 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)