Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_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.007396/0.007396, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.377/1.377, 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.001476/0.001476, allocations: 184.5 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4356/0.4356, allocations: 78.52 MB / 418.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 80.03 kB / 0.5532 GB, free: 1.398 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3049, allocations: 68.16 MB / 0.6198 GB, free: 9.277 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01029/0.3152, allocations: 13.68 MB / 0.6331 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007425/0.3227, allocations: 3.464 MB / 0.6365 GB, free: 8.945 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00225/0.325, allocations: 31.94 kB / 0.6365 GB, free: 8.914 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.3268, allocations: 0.5615 MB / 0.6371 GB, free: 8.344 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004889/0.3317, allocations: 1.418 MB / 0.6385 GB, free: 6.926 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003677/0.3354, allocations: 1.516 MB / 0.64 GB, free: 5.43 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005178/0.3406, allocations: 3.722 MB / 0.6436 GB, free: 1.691 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.3421, allocations: 0.9034 MB / 0.6445 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002449/0.3446, allocations: 1.525 MB / 0.646 GB, free: 15.21 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002726/0.3473, allocations: 1.956 MB / 0.6479 GB, free: 13.24 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009478/0.3483, allocations: 284 kB / 0.6481 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/0.3497, allocations: 435.9 kB / 0.6486 GB, free: 12.54 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009785/0.3507, allocations: 0.7585 MB / 0.6493 GB, free: 11.78 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002301/0.353, allocations: 1.639 MB / 0.6509 GB, free: 10.13 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005017/0.358, allocations: 3.974 MB / 0.6548 GB, free: 6.141 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.358, allocations: 0 / 0.6548 GB, free: 6.141 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.358, allocations: 0 / 0.6548 GB, free: 6.141 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001289/0.3582, allocations: 3.938 kB / 0.6548 GB, free: 6.137 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02547/0.3837, allocations: 6.575 MB / 0.6612 GB, free: 15.46 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.3837, allocations: 8.031 kB / 0.6612 GB, free: 15.46 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008757/0.3846, allocations: 303.2 kB / 0.6615 GB, free: 15.15 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01574/0.4004, allocations: 2.275 MB / 0.6637 GB, free: 12.87 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004136/0.4045, allocations: 1.863 MB / 0.6655 GB, free: 10.94 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008165/0.4054, allocations: 0.7329 MB / 0.6663 GB, free: 10.09 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007426/0.4061, allocations: 223.9 kB / 0.6665 GB, free: 9.871 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006688/0.4128, allocations: 3.032 MB / 0.6694 GB, free: 6.762 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.037e-05/0.4129, allocations: 0 / 0.6694 GB, free: 6.762 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.4132, allocations: 83.94 kB / 0.6695 GB, free: 6.68 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.104e-05/0.4132, allocations: 48 kB / 0.6696 GB, free: 6.633 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006284/0.4195, allocations: 2.796 MB / 0.6723 GB, free: 3.82 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.01896/0.4385, allocations: 9.805 MB / 0.6819 GB, free: 9.59 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.45, allocations: 4.188 MB / 0.6859 GB, free: 5.273 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004572/0.4546, allocations: 1.964 MB / 0.6879 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00033/0.455, allocations: 41.95 kB / 0.6879 GB, free: 3.262 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005002/0.46, allocations: 2.232 MB / 0.6901 GB, free: 1.008 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 4.338e-06/0.46, allocations: 0 / 0.6901 GB, free: 1.008 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1214/0.5814, allocations: 27.31 MB / 0.7168 GB, free: 5.574 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/0.5815, allocations: 184.2 kB / 0.7169 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003433/0.585, allocations: 2.269 MB / 0.7191 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005755/0.5856, allocations: 69.7 kB / 0.7192 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008845/0.5865, allocations: 1.168 MB / 0.7204 GB, free: 1.816 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001115/0.5876, allocations: 0.8744 MB / 0.7212 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001151/0.5888, allocations: 0.5579 MB / 0.7218 GB, free: 372 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.865e-05/0.5889, allocations: 305.1 kB / 0.722 GB, free: 64 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004666/0.5935, allocations: 1.951 MB / 0.7239 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004923/0.5985, allocations: 2.322 MB / 0.7262 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0577/0.6562, allocations: 14.04 MB / 0.7399 GB, free: 13.43 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.638e-05/0.6563, allocations: 7.938 kB / 0.7399 GB, free: 13.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04468/0.701, allocations: 12.5 MB / 0.7521 GB, free: 0.8516 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.7011, allocations: 110.8 kB / 0.7522 GB, free: 0.7188 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.47e-05/0.7011, allocations: 12 kB / 0.7523 GB, free: 0.707 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0191/0.7202, allocations: 5.288 MB / 0.7574 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003067/0.7233, allocations: 0.5734 MB / 0.758 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3238/1.047, allocations: 23.16 MB / 0.7806 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/1.051, allocations: 486.4 kB / 0.7811 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004105/1.052, allocations: 117.9 kB / 0.7812 GB, free: 121.1 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_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 (330): * Single equations (assignments): 325 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001145/1.053, allocations: 0.5293 MB / 0.7817 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005229/1.053, allocations: 299.4 kB / 0.782 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0395/1.093, allocations: 11.91 MB / 0.7936 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/1.093, allocations: 23.56 kB / 0.7936 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.1e-05/1.093, allocations: 19.69 kB / 0.7936 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.154e-05/1.093, allocations: 11.48 kB / 0.7937 GB, free: 118.3 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.0428/1.136, allocations: 15.5 MB / 0.8088 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-05/1.136, allocations: 4 kB / 0.8088 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/1.138, allocations: 239.7 kB / 0.809 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01689/1.155, allocations: 5.251 MB / 0.8142 GB, free: 104 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007054/1.155, allocations: 55.98 kB / 0.8142 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05474/1.21, allocations: 24.93 MB / 0.8385 GB, free: 78.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.21, allocations: 6.797 kB / 0.8386 GB, free: 78.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04313/1.253, allocations: 14.28 MB / 0.8525 GB, free: 64.21 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008657/1.254, allocations: 403 kB / 0.8529 GB, free: 63.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005525/1.255, allocations: 48 kB / 0.8529 GB, free: 63.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002974/1.258, allocations: 303.6 kB / 0.8532 GB, free: 63.46 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00195/1.26, allocations: 0.5802 MB / 0.8538 GB, free: 62.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/1.26, allocations: 63.98 kB / 0.8538 GB, free: 62.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001939/1.262, allocations: 1.499 MB / 0.8553 GB, free: 61.32 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.072e-06/1.262, allocations: 0 / 0.8553 GB, free: 61.32 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003183/1.265, allocations: 1.185 MB / 0.8565 GB, free: 60.13 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (157): * Single equations (assignments): 152 * 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 {(65,23,7.8%)} * 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.04271/1.308, allocations: 14.91 MB / 0.871 GB, free: 45.11 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01767/1.325, allocations: 6.625 MB / 0.8775 GB, free: 38.41 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/1.326, allocations: 0 / 0.8775 GB, free: 38.41 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01322/1.339, allocations: 4.397 MB / 0.8818 GB, free: 33.95 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/1.341, allocations: 269.3 kB / 0.882 GB, free: 33.69 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1066/1.448, allocations: 41.78 MB / 0.9228 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/1.449, allocations: 1.806 MB / 0.9246 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001126/1.45, allocations: 266.5 kB / 0.9249 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001522/1.452, allocations: 1.233 MB / 0.9261 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of SimCode: time 5.81e-07/1.452, allocations: 4 kB / 0.9261 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1447/1.596, allocations: 91.26 MB / 1.015 GB, free: 9.094 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.94/19.54, allocations: 17.41 kB / 1.015 GB, free: 9.082 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)