Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.006135/0.006136, 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.37/1.37, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001535/0.001535, allocations: 192.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4668/0.4668, allocations: 78.53 MB / 418.4 MB, free: 3.121 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 79.88 kB / 0.5532 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4536/0.4554, allocations: 68.17 MB / 0.6197 GB, free: 9.41 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.007831/0.4632, allocations: 6.559 MB / 0.6261 GB, free: 3.586 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003851/0.4671, allocations: 1.966 MB / 0.6281 GB, free: 1.613 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004825/0.4676, allocations: 8 kB / 0.6281 GB, free: 1.605 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007195/0.4684, allocations: 234 kB / 0.6283 GB, free: 1.375 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002087/0.4705, allocations: 0.8481 MB / 0.6291 GB, free: 0.5273 MB / 430.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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.472, allocations: 0.6292 MB / 0.6297 GB, free: 15.9 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002113/0.4741, allocations: 1.592 MB / 0.6313 GB, free: 14.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006519/0.4748, allocations: 328.7 kB / 0.6316 GB, free: 13.97 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.4758, allocations: 0.6652 MB / 0.6322 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.4771, allocations: 0.8129 MB / 0.633 GB, free: 12.49 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002451/0.4773, allocations: 127.9 kB / 0.6332 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007338/0.4781, allocations: 255.9 kB / 0.6334 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004933/0.4786, allocations: 330.6 kB / 0.6337 GB, free: 11.79 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008689/0.4795, allocations: 0.668 MB / 0.6344 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002311/0.4818, allocations: 1.662 MB / 0.636 GB, free: 9.449 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4818, allocations: 4 kB / 0.636 GB, free: 9.445 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4818, allocations: 0 / 0.636 GB, free: 9.445 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.4819, allocations: 4 kB / 0.636 GB, free: 9.441 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.0126/0.4945, allocations: 2.68 MB / 0.6386 GB, free: 6.691 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.4945, allocations: 8.031 kB / 0.6386 GB, free: 6.684 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002199/0.4948, allocations: 126.7 kB / 0.6387 GB, free: 6.551 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009004/0.5038, allocations: 0.7787 MB / 0.6395 GB, free: 5.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.5059, allocations: 0.8825 MB / 0.6404 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003808/0.5063, allocations: 260.2 kB / 0.6406 GB, free: 4.539 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002713/0.5066, allocations: 83.91 kB / 0.6407 GB, free: 4.457 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003083/0.5097, allocations: 1.094 MB / 0.6418 GB, free: 3.352 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.5098, allocations: 0 / 0.6418 GB, free: 3.352 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.5099, allocations: 32 kB / 0.6418 GB, free: 3.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.5099, allocations: 20 kB / 0.6418 GB, free: 3.301 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003048/0.513, allocations: 0.9877 MB / 0.6428 GB, free: 2.312 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.009194/0.5222, allocations: 3.8 MB / 0.6465 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.5327, allocations: 2.385 MB / 0.6488 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002012/0.5347, allocations: 0.6762 MB / 0.6495 GB, free: 11.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.5348, allocations: 9 kB / 0.6495 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002372/0.5372, allocations: 0.8229 MB / 0.6503 GB, free: 10.33 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 3.687e-06/0.5373, allocations: 0 / 0.6503 GB, free: 10.33 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.04014/0.5774, allocations: 7.081 MB / 0.6572 GB, free: 3.184 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.5776, allocations: 119.8 kB / 0.6573 GB, free: 3.043 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002394/0.58, allocations: 1.079 MB / 0.6584 GB, free: 1.949 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002632/0.5803, allocations: 53.73 kB / 0.6584 GB, free: 1.891 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005514/0.5808, allocations: 488.8 kB / 0.6589 GB, free: 1.406 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005157/0.5813, allocations: 366.8 kB / 0.6592 GB, free: 1.043 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007563/0.5821, allocations: 287.4 kB / 0.6595 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5823, allocations: 305.1 kB / 0.6598 GB, free: 468 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002464/0.5847, allocations: 0.7653 MB / 0.6606 GB, free: 15.69 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002645/0.5874, allocations: 0.9343 MB / 0.6615 GB, free: 14.71 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03327/0.6207, allocations: 5.579 MB / 0.6669 GB, free: 9.051 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-05/0.6207, allocations: 4 kB / 0.6669 GB, free: 9.047 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.02012/0.6409, allocations: 4.332 MB / 0.6711 GB, free: 4.688 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.964e-05/0.641, allocations: 63.39 kB / 0.6712 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.6411, allocations: 4 kB / 0.6712 GB, free: 4.609 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007864/0.6489, allocations: 1.512 MB / 0.6727 GB, free: 3.094 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/0.6512, allocations: 295.5 kB / 0.673 GB, free: 2.805 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02902/0.6802, allocations: 8.264 MB / 0.681 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002594/0.6828, allocations: 194.8 kB / 0.6812 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003819/0.6833, allocations: 59.97 kB / 0.6813 GB, free: 10.13 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001104/0.6844, allocations: 300.3 kB / 0.6816 GB, free: 9.824 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004846/0.6849, allocations: 130.3 kB / 0.6817 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/0.7034, allocations: 3.877 MB / 0.6855 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.714e-05/0.7035, allocations: 11.98 kB / 0.6855 GB, free: 5.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.362e-05/0.7036, allocations: 8 kB / 0.6855 GB, free: 5.762 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.568e-05/0.7036, allocations: 11.97 kB / 0.6855 GB, free: 5.75 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.02228/0.7259, allocations: 5.46 MB / 0.6908 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/0.726, allocations: 0 / 0.6908 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009561/0.7269, allocations: 103.8 kB / 0.6909 GB, free: 84 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008021/0.735, allocations: 1.602 MB / 0.6925 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002654/0.7353, allocations: 23.98 kB / 0.6925 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03098/0.7663, allocations: 9.599 MB / 0.7019 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.7663, allocations: 7.984 kB / 0.7019 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02156/0.7879, allocations: 4.727 MB / 0.7065 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006295/0.7886, allocations: 231.1 kB / 0.7067 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000496/0.7891, allocations: 16 kB / 0.7068 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001927/0.7911, allocations: 111.9 kB / 0.7069 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009804/0.7921, allocations: 192.7 kB / 0.7071 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001945/0.7923, allocations: 24.06 kB / 0.7071 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001876/0.7942, allocations: 0.7313 MB / 0.7078 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7942, allocations: 0 / 0.7078 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002466/0.7966, allocations: 475.5 kB / 0.7082 GB, free: 14.01 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02197/0.8186, allocations: 5.329 MB / 0.7134 GB, free: 8.633 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009893/0.8286, allocations: 2.509 MB / 0.7159 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.8286, allocations: 0 / 0.7159 GB, free: 6.078 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006795/0.8355, allocations: 1.603 MB / 0.7175 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/0.8377, allocations: 115.3 kB / 0.7176 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0588/0.8966, allocations: 16.01 MB / 0.7332 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.8978, allocations: 1.124 MB / 0.7343 GB, free: 2.941 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0008302/0.8987, allocations: 120.1 kB / 0.7344 GB, free: 2.82 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.8998, allocations: 467.3 kB / 0.7349 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/0.8998, allocations: 0 / 0.7349 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1022/1.002, allocations: 34.22 MB / 0.7683 GB, free: 304 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/15.47, allocations: 7.812 kB / 0.7683 GB, free: 296 kB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)