Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.005769/0.005769, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.299/1.299, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001317/0.001317, allocations: 195.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4455/0.4455, allocations: 78.53 MB / 418.4 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 75.86 kB / 0.5532 GB, free: 1.469 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.342, allocations: 68.17 MB / 0.6197 GB, free: 9.328 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005367/0.3474, allocations: 6.495 MB / 0.6261 GB, free: 3.652 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003183/0.3507, allocations: 1.966 MB / 0.628 GB, free: 1.68 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004525/0.3511, allocations: 8 kB / 0.628 GB, free: 1.672 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006142/0.3518, allocations: 241.9 kB / 0.6282 GB, free: 1.434 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001461/0.3532, allocations: 0.7946 MB / 0.629 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009528/0.3542, allocations: 0.6252 MB / 0.6296 GB, free: 20 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001397/0.3556, allocations: 1.573 MB / 0.6312 GB, free: 14.44 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004322/0.3561, allocations: 332.7 kB / 0.6315 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006575/0.3567, allocations: 0.6574 MB / 0.6321 GB, free: 13.45 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007815/0.3575, allocations: 0.8167 MB / 0.6329 GB, free: 12.62 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001571/0.3577, allocations: 128 kB / 0.633 GB, free: 12.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004359/0.3581, allocations: 263.8 kB / 0.6333 GB, free: 12.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002515/0.3584, allocations: 326.6 kB / 0.6336 GB, free: 11.92 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000473/0.3589, allocations: 0.6719 MB / 0.6343 GB, free: 11.25 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001554/0.3604, allocations: 1.666 MB / 0.6359 GB, free: 9.574 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.3604, allocations: 0 / 0.6359 GB, free: 9.574 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3605, allocations: 0 / 0.6359 GB, free: 9.574 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.3605, allocations: 0 / 0.6359 GB, free: 9.574 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008433/0.3689, allocations: 2.688 MB / 0.6385 GB, free: 6.816 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.369, allocations: 8.031 kB / 0.6385 GB, free: 6.809 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.3692, allocations: 122.6 kB / 0.6386 GB, free: 6.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004826/0.374, allocations: 0.7827 MB / 0.6394 GB, free: 5.895 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.3756, allocations: 0.8902 MB / 0.6403 GB, free: 4.949 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003201/0.3759, allocations: 256.2 kB / 0.6405 GB, free: 4.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001917/0.3761, allocations: 83.98 kB / 0.6406 GB, free: 4.578 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.3783, allocations: 1.083 MB / 0.6416 GB, free: 3.484 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.3783, allocations: 4 kB / 0.6416 GB, free: 3.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.577e-05/0.3784, allocations: 28 kB / 0.6417 GB, free: 3.453 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.3784, allocations: 16 kB / 0.6417 GB, free: 3.438 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002052/0.3805, allocations: 0.9916 MB / 0.6427 GB, free: 2.445 MB / 446.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.006506/0.387, allocations: 3.797 MB / 0.6464 GB, free: 14.47 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007252/0.3943, allocations: 2.371 MB / 0.6487 GB, free: 12.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.3956, allocations: 0.6801 MB / 0.6493 GB, free: 11.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.3957, allocations: 12.98 kB / 0.6494 GB, free: 11.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0016/0.3973, allocations: 0.8243 MB / 0.6502 GB, free: 10.47 MB / 462.1 MB Notification: Performance of pre-optimization done (n=95): time 3.787e-06/0.3974, allocations: 0 / 0.6502 GB, free: 10.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.0287/0.4261, allocations: 7.186 MB / 0.6572 GB, free: 3.223 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/0.4262, allocations: 119.8 kB / 0.6573 GB, free: 3.082 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.428, allocations: 1.087 MB / 0.6584 GB, free: 1.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.4282, allocations: 49.69 kB / 0.6584 GB, free: 1.926 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.4286, allocations: 488.8 kB / 0.6589 GB, free: 1.441 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004013/0.429, allocations: 355.1 kB / 0.6592 GB, free: 1.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000566/0.4296, allocations: 283.4 kB / 0.6595 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.522e-05/0.4297, allocations: 305.1 kB / 0.6598 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/0.4313, allocations: 0.7497 MB / 0.6605 GB, free: 15.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.433, allocations: 0.9303 MB / 0.6614 GB, free: 14.78 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02264/0.4556, allocations: 5.559 MB / 0.6668 GB, free: 9.141 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.4557, allocations: 0 / 0.6668 GB, free: 9.141 MB / 478.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01344/0.4691, allocations: 4.364 MB / 0.6711 GB, free: 4.746 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.887e-05/0.4693, allocations: 59.41 kB / 0.6712 GB, free: 4.676 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.4693, allocations: 4 kB / 0.6712 GB, free: 4.672 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005643/0.4749, allocations: 1.588 MB / 0.6727 GB, free: 3.082 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.4763, allocations: 283.6 kB / 0.673 GB, free: 2.805 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01978/0.4961, allocations: 8.494 MB / 0.6813 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/0.4981, allocations: 206.5 kB / 0.6815 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002505/0.4983, allocations: 59.97 kB / 0.6815 GB, free: 9.895 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 2 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007489/0.4991, allocations: 296.2 kB / 0.6818 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.4994, allocations: 122.5 kB / 0.6819 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/0.512, allocations: 3.877 MB / 0.6857 GB, free: 5.551 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.5121, allocations: 12 kB / 0.6857 GB, free: 5.539 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.317e-05/0.5121, allocations: 16 kB / 0.6857 GB, free: 5.523 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.827e-05/0.5121, allocations: 3.984 kB / 0.6857 GB, free: 5.52 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.01485/0.527, allocations: 5.448 MB / 0.6911 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.5271, allocations: 4 kB / 0.6911 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.5277, allocations: 99.78 kB / 0.6912 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005681/0.5334, allocations: 1.603 MB / 0.6927 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.5335, allocations: 16 kB / 0.6927 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02016/0.5537, allocations: 9.634 MB / 0.7022 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5537, allocations: 0 / 0.7022 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01442/0.5682, allocations: 4.727 MB / 0.7068 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005016/0.5687, allocations: 227.3 kB / 0.707 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003202/0.569, allocations: 19.94 kB / 0.707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.5703, allocations: 111.9 kB / 0.7071 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006358/0.571, allocations: 192.7 kB / 0.7073 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.968e-05/0.5711, allocations: 28 kB / 0.7073 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001169/0.5723, allocations: 0.7354 MB / 0.708 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.51e-07/0.5723, allocations: 0 / 0.708 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001537/0.5738, allocations: 475.5 kB / 0.7085 GB, free: 13.76 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01468/0.5885, allocations: 5.319 MB / 0.7137 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006608/0.5952, allocations: 2.513 MB / 0.7161 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.5952, allocations: 3.938 kB / 0.7161 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004388/0.5996, allocations: 1.596 MB / 0.7177 GB, free: 4.195 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.6009, allocations: 115.7 kB / 0.7178 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03907/0.64, allocations: 16.01 MB / 0.7334 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008154/0.6408, allocations: 1.12 MB / 0.7345 GB, free: 2.699 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005786/0.6414, allocations: 124 kB / 0.7347 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007904/0.6422, allocations: 475.3 kB / 0.7351 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of SimCode: time 1.173e-06/0.6423, allocations: 0 / 0.7351 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3654/1.008, allocations: 35.6 MB / 0.7699 GB, free: 138.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.72, allocations: 2.344 kB / 0.7699 GB, free: 138.3 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)