Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_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.006163/0.006163, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.436/1.436, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001566/0.001566, allocations: 192.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4776/0.4776, allocations: 78.53 MB / 418.4 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002588/0.002588, allocations: 80.11 kB / 0.5532 GB, free: 1.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4201, allocations: 68.17 MB / 0.6198 GB, free: 9.391 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.01119/0.4313, allocations: 13.81 MB / 0.6333 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008691/0.44, allocations: 3.523 MB / 0.6367 GB, free: 8.762 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.4427, allocations: 28 kB / 0.6367 GB, free: 8.734 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.4444, allocations: 0.5654 MB / 0.6373 GB, free: 8.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005076/0.4495, allocations: 1.589 MB / 0.6388 GB, free: 6.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003633/0.4531, allocations: 1.527 MB / 0.6403 GB, free: 5.062 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005509/0.4586, allocations: 3.808 MB / 0.644 GB, free: 1.238 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.4602, allocations: 0.9074 MB / 0.6449 GB, free: 288 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00249/0.4627, allocations: 1.564 MB / 0.6465 GB, free: 14.71 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003258/0.466, allocations: 2.007 MB / 0.6484 GB, free: 12.7 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001239/0.4672, allocations: 292 kB / 0.6487 GB, free: 12.41 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001795/0.469, allocations: 447.9 kB / 0.6491 GB, free: 11.97 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.47, allocations: 0.774 MB / 0.6499 GB, free: 11.2 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002003/0.472, allocations: 1.662 MB / 0.6515 GB, free: 9.523 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004386/0.4764, allocations: 4.048 MB / 0.6555 GB, free: 5.461 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4765, allocations: 0 / 0.6555 GB, free: 5.461 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4765, allocations: 4 kB / 0.6555 GB, free: 5.457 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.249e-05/0.4765, allocations: 0 / 0.6555 GB, free: 5.457 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: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.02226/0.4988, allocations: 6.669 MB / 0.662 GB, free: 14.69 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4989, allocations: 12.03 kB / 0.662 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004138/0.4993, allocations: 303.3 kB / 0.6623 GB, free: 14.37 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01459/0.5139, allocations: 2.279 MB / 0.6645 GB, free: 12.09 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004781/0.5187, allocations: 1.91 MB / 0.6664 GB, free: 10.11 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008471/0.5196, allocations: 0.7253 MB / 0.6671 GB, free: 9.27 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008603/0.5205, allocations: 223.9 kB / 0.6673 GB, free: 9.051 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008105/0.5286, allocations: 3.059 MB / 0.6703 GB, free: 5.914 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.919e-05/0.5287, allocations: 3.938 kB / 0.6703 GB, free: 5.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004903/0.5292, allocations: 88 kB / 0.6704 GB, free: 5.824 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-05/0.5292, allocations: 48 kB / 0.6704 GB, free: 5.777 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006257/0.5355, allocations: 2.8 MB / 0.6731 GB, free: 2.961 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.02062/0.5561, allocations: 9.904 MB / 0.6828 GB, free: 8.633 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/0.5671, allocations: 4.22 MB / 0.6869 GB, free: 4.277 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00418/0.5713, allocations: 1.979 MB / 0.6889 GB, free: 2.293 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000373/0.5717, allocations: 45.95 kB / 0.6889 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004807/0.5765, allocations: 2.252 MB / 0.6911 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=250): time 5.891e-06/0.5765, allocations: 0 / 0.6911 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=250): time 0.121/0.6976, allocations: 28.81 MB / 0.7192 GB, free: 3.039 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.6978, allocations: 184.2 kB / 0.7194 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00475/0.7025, allocations: 2.333 MB / 0.7217 GB, free: 484 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000728/0.7033, allocations: 73.7 kB / 0.7218 GB, free: 404 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.7045, allocations: 1.184 MB / 0.7229 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001588/0.7061, allocations: 0.8819 MB / 0.7238 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00247/0.7086, allocations: 0.566 MB / 0.7243 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.7087, allocations: 301.1 kB / 0.7246 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004834/0.7136, allocations: 1.99 MB / 0.7266 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005203/0.7188, allocations: 2.362 MB / 0.7289 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05727/0.7761, allocations: 14.38 MB / 0.7429 GB, free: 10.38 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.952e-05/0.7762, allocations: 4 kB / 0.7429 GB, free: 10.38 MB / 0.545 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04259/0.8188, allocations: 12.6 MB / 0.7552 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.8189, allocations: 120.4 kB / 0.7553 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/0.819, allocations: 4 kB / 0.7553 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01861/0.8376, allocations: 5.445 MB / 0.7607 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003226/0.8409, allocations: 0.5695 MB / 0.7612 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4123/1.253, allocations: 23.64 MB / 0.7843 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004417/1.258, allocations: 495 kB / 0.7848 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005519/1.258, allocations: 119.5 kB / 0.7849 GB, free: 120.6 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 Syn2.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 (336): * Single equations (assignments): 331 * 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,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001369/1.26, allocations: 0.5406 MB / 0.7854 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006887/1.26, allocations: 300.2 kB / 0.7857 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03412/1.294, allocations: 11.94 MB / 0.7974 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.204e-05/1.294, allocations: 27.12 kB / 0.7974 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.791e-05/1.295, allocations: 19.31 kB / 0.7974 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.687e-05/1.295, allocations: 11.48 kB / 0.7974 GB, free: 117.7 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.03932/1.334, allocations: 15.59 MB / 0.8126 GB, free: 105.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.692e-05/1.334, allocations: 4 kB / 0.8126 GB, free: 105.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/1.336, allocations: 251.6 kB / 0.8129 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01539/1.351, allocations: 5.28 MB / 0.818 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006564/1.352, allocations: 51.98 kB / 0.8181 GB, free: 100.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04931/1.401, allocations: 24.93 MB / 0.8424 GB, free: 74.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.401, allocations: 0 / 0.8424 GB, free: 74.96 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03937/1.441, allocations: 14.34 MB / 0.8564 GB, free: 60.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/1.442, allocations: 419.4 kB / 0.8568 GB, free: 60.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008676/1.443, allocations: 51.84 kB / 0.8569 GB, free: 60.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002959/1.446, allocations: 299.6 kB / 0.8572 GB, free: 59.74 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002195/1.448, allocations: 0.5799 MB / 0.8577 GB, free: 59.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002193/1.448, allocations: 70.17 kB / 0.8578 GB, free: 59.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002077/1.45, allocations: 1.543 MB / 0.8593 GB, free: 57.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.45, allocations: 0 / 0.8593 GB, free: 57.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00385/1.454, allocations: 1.19 MB / 0.8605 GB, free: 56.36 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,Syn2.e2q,Syn2.e2d,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 (159): * Single equations (assignments): 154 * 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.03903/1.493, allocations: 14.98 MB / 0.8751 GB, free: 41.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0166/1.51, allocations: 6.789 MB / 0.8817 GB, free: 34.37 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.51, allocations: 4.25 kB / 0.8817 GB, free: 34.37 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01163/1.521, allocations: 4.428 MB / 0.8861 GB, free: 29.87 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/1.524, allocations: 267.2 kB / 0.8863 GB, free: 29.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1021/1.626, allocations: 42.12 MB / 0.9275 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001732/1.628, allocations: 1.823 MB / 0.9292 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001312/1.629, allocations: 262.8 kB / 0.9295 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001952/1.631, allocations: 1.252 MB / 0.9307 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of SimCode: time 1.062e-06/1.631, allocations: 0 / 0.9307 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1702/1.801, allocations: 91.01 MB / 1.02 GB, free: 4.895 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.68/20.48, allocations: 9.656 kB / 1.02 GB, free: 4.887 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)