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.006772/0.006773, allocations: 96.7 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.513/1.513, 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.0019/0.001901, allocations: 188.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.5816/0.5816, allocations: 78.53 MB / 418.4 MB, free: 3.129 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002309/0.002309, allocations: 83.86 kB / 0.5532 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4091, allocations: 68.16 MB / 0.6197 GB, free: 9.234 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006449/0.4156, allocations: 6.575 MB / 0.6261 GB, free: 3.574 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004366/0.4201, allocations: 1.951 MB / 0.628 GB, free: 1.617 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.4213, allocations: 12 kB / 0.6281 GB, free: 1.605 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009045/0.4222, allocations: 245.9 kB / 0.6283 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002534/0.4248, allocations: 0.8003 MB / 0.6291 GB, free: 0.5664 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.00152/0.4263, allocations: 0.6291 MB / 0.6297 GB, free: 15.94 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002608/0.4289, allocations: 1.585 MB / 0.6312 GB, free: 14.35 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005854/0.4295, allocations: 322.4 kB / 0.6315 GB, free: 14.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001222/0.4308, allocations: 0.6613 MB / 0.6322 GB, free: 13.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001222/0.432, allocations: 0.8206 MB / 0.633 GB, free: 12.54 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002813/0.4323, allocations: 120 kB / 0.6331 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007458/0.4331, allocations: 259.9 kB / 0.6334 GB, free: 12.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003823/0.4334, allocations: 326.6 kB / 0.6337 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008271/0.4343, allocations: 0.6719 MB / 0.6343 GB, free: 11.17 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002729/0.437, allocations: 1.677 MB / 0.636 GB, free: 9.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4371, allocations: 0 / 0.636 GB, free: 9.488 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4371, allocations: 0 / 0.636 GB, free: 9.488 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.977e-05/0.4371, allocations: 0 / 0.636 GB, free: 9.488 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.009775/0.4469, allocations: 2.73 MB / 0.6386 GB, free: 6.688 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.447, allocations: 12.03 kB / 0.6386 GB, free: 6.676 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001754/0.4471, allocations: 122.7 kB / 0.6388 GB, free: 6.547 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005258/0.4524, allocations: 0.7796 MB / 0.6395 GB, free: 5.766 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.4545, allocations: 0.8951 MB / 0.6404 GB, free: 4.816 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000358/0.4549, allocations: 256.2 kB / 0.6406 GB, free: 4.527 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002072/0.4551, allocations: 87.95 kB / 0.6407 GB, free: 4.441 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002471/0.4576, allocations: 1.09 MB / 0.6418 GB, free: 3.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.4576, allocations: 0 / 0.6418 GB, free: 3.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-05/0.4577, allocations: 35.94 kB / 0.6418 GB, free: 3.305 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.4578, allocations: 16 kB / 0.6418 GB, free: 3.289 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00234/0.4601, allocations: 0.9955 MB / 0.6428 GB, free: 2.293 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.007761/0.4679, allocations: 3.805 MB / 0.6465 GB, free: 14.31 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00804/0.4759, allocations: 2.379 MB / 0.6488 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/0.4777, allocations: 0.6801 MB / 0.6495 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.4778, allocations: 16.98 kB / 0.6495 GB, free: 11.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001803/0.4796, allocations: 0.8177 MB / 0.6503 GB, free: 10.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.875e-06/0.4797, allocations: 0 / 0.6503 GB, free: 10.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.03107/0.5107, allocations: 7.093 MB / 0.6572 GB, free: 3.145 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.5109, allocations: 115.8 kB / 0.6574 GB, free: 3.008 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/0.513, allocations: 1.087 MB / 0.6584 GB, free: 1.906 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002718/0.5133, allocations: 45.7 kB / 0.6585 GB, free: 1.855 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004629/0.5137, allocations: 0.4975 MB / 0.6589 GB, free: 1.352 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005277/0.5143, allocations: 368.9 kB / 0.6593 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000583/0.5149, allocations: 287.5 kB / 0.6596 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.515, allocations: 301.1 kB / 0.6599 GB, free: 416 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.5168, allocations: 0.7613 MB / 0.6606 GB, free: 15.64 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001891/0.5187, allocations: 0.9343 MB / 0.6615 GB, free: 14.67 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02558/0.5443, allocations: 5.583 MB / 0.667 GB, free: 9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.5443, allocations: 0 / 0.667 GB, free: 9 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01524/0.5596, allocations: 4.344 MB / 0.6712 GB, free: 4.629 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.274e-05/0.5597, allocations: 71.39 kB / 0.6713 GB, free: 4.547 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.5598, allocations: 4 kB / 0.6713 GB, free: 4.543 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006432/0.5662, allocations: 1.504 MB / 0.6728 GB, free: 3.035 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/0.5681, allocations: 299.6 kB / 0.673 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02314/0.5912, allocations: 8.269 MB / 0.6811 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002247/0.5935, allocations: 207 kB / 0.6813 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002728/0.5938, allocations: 55.97 kB / 0.6814 GB, free: 10.06 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.0008643/0.5947, allocations: 296.3 kB / 0.6816 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/0.5951, allocations: 135.1 kB / 0.6818 GB, free: 9.621 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0147/0.6098, allocations: 3.877 MB / 0.6856 GB, free: 5.707 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.803e-05/0.6099, allocations: 12 kB / 0.6856 GB, free: 5.695 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/0.6099, allocations: 4 kB / 0.6856 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.73e-05/0.6099, allocations: 3.984 kB / 0.6856 GB, free: 5.688 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.0176/0.6275, allocations: 5.467 MB / 0.6909 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.6276, allocations: 4 kB / 0.6909 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007595/0.6284, allocations: 95.89 kB / 0.691 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006499/0.6349, allocations: 1.61 MB / 0.6926 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002944/0.6352, allocations: 20 kB / 0.6926 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02498/0.6602, allocations: 9.612 MB / 0.702 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.6603, allocations: 7.938 kB / 0.702 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01696/0.6773, allocations: 4.736 MB / 0.7066 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.6779, allocations: 235.9 kB / 0.7069 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/0.6782, allocations: 20 kB / 0.7069 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.6795, allocations: 107.9 kB / 0.707 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007541/0.6802, allocations: 196.7 kB / 0.7072 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.702e-05/0.6803, allocations: 24 kB / 0.7072 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001305/0.6816, allocations: 0.7235 MB / 0.7079 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.996e-06/0.6817, allocations: 4 kB / 0.7079 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001634/0.6833, allocations: 483.5 kB / 0.7084 GB, free: 13.9 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.01683/0.7001, allocations: 5.341 MB / 0.7136 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007504/0.7077, allocations: 2.505 MB / 0.716 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.7077, allocations: 0 / 0.716 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005093/0.7128, allocations: 1.622 MB / 0.7176 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.7142, allocations: 110.3 kB / 0.7177 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04584/0.7601, allocations: 16.05 MB / 0.7334 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.7612, allocations: 1.124 MB / 0.7345 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0007268/0.7619, allocations: 120.1 kB / 0.7346 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007602/0.7627, allocations: 471.3 kB / 0.735 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of SimCode: time 6.11e-07/0.7627, allocations: 0 / 0.735 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09204/0.8548, allocations: 34.23 MB / 0.7685 GB, free: 116 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.53, allocations: 11.88 kB / 0.7685 GB, free: 104 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 & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)