Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.006655/0.006655, allocations: 105.4 kB / 15.74 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.36/1.36, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001674/0.001674, allocations: 200.4 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5051/0.5051, allocations: 78.52 MB / 418.4 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 83.88 kB / 0.5532 GB, free: 1.461 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4172, allocations: 68.17 MB / 0.6197 GB, free: 9.352 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.006362/0.4236, allocations: 6.649 MB / 0.6262 GB, free: 3.5 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003951/0.4276, allocations: 1.994 MB / 0.6282 GB, free: 1.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005215/0.4281, allocations: 12 kB / 0.6282 GB, free: 1.488 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006664/0.4288, allocations: 238 kB / 0.6284 GB, free: 1.254 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001663/0.4305, allocations: 0.8749 MB / 0.6293 GB, free: 388 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.4317, allocations: 0.6216 MB / 0.6299 GB, free: 15.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.4332, allocations: 1.651 MB / 0.6315 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.4337, allocations: 328.7 kB / 0.6318 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007711/0.4345, allocations: 0.6769 MB / 0.6324 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008549/0.4353, allocations: 0.8518 MB / 0.6333 GB, free: 12.24 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001741/0.4355, allocations: 128 kB / 0.6334 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004543/0.436, allocations: 271.8 kB / 0.6337 GB, free: 11.85 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.4363, allocations: 346.6 kB / 0.634 GB, free: 11.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.4369, allocations: 0.6874 MB / 0.6347 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001628/0.4385, allocations: 1.709 MB / 0.6363 GB, free: 9.102 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4385, allocations: 0 / 0.6363 GB, free: 9.102 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4385, allocations: 0 / 0.6363 GB, free: 9.102 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.4385, allocations: 4 kB / 0.6363 GB, free: 9.098 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.009016/0.4476, allocations: 2.75 MB / 0.639 GB, free: 6.277 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/0.4476, allocations: 8.031 kB / 0.639 GB, free: 6.27 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001776/0.4478, allocations: 126.7 kB / 0.6392 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004908/0.4527, allocations: 0.7787 MB / 0.6399 GB, free: 5.355 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.4544, allocations: 0.9139 MB / 0.6408 GB, free: 4.387 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000294/0.4547, allocations: 260.2 kB / 0.6411 GB, free: 4.094 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.4549, allocations: 87.91 kB / 0.6411 GB, free: 4.008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002045/0.457, allocations: 1.094 MB / 0.6422 GB, free: 2.902 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.457, allocations: 4 kB / 0.6422 GB, free: 2.898 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.124e-05/0.4571, allocations: 35.98 kB / 0.6422 GB, free: 2.863 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.4571, allocations: 23.98 kB / 0.6423 GB, free: 2.84 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001933/0.4591, allocations: 1.003 MB / 0.6432 GB, free: 1.836 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.006394/0.4655, allocations: 3.848 MB / 0.647 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007098/0.4726, allocations: 2.387 MB / 0.6493 GB, free: 11.33 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.474, allocations: 0.684 MB / 0.65 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001209/0.4741, allocations: 24.97 kB / 0.65 GB, free: 10.62 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001599/0.4757, allocations: 0.8385 MB / 0.6508 GB, free: 9.758 MB / 462.1 MB Notification: Performance of pre-optimization done (n=97): time 2.575e-06/0.4757, allocations: 0 / 0.6508 GB, free: 9.758 MB / 462.1 MB Notification: Performance of matching and sorting (n=97): time 0.02792/0.5037, allocations: 7.218 MB / 0.6579 GB, free: 2.477 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.053e-05/0.5038, allocations: 119.8 kB / 0.658 GB, free: 2.336 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.5055, allocations: 1.119 MB / 0.6591 GB, free: 1.203 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002091/0.5057, allocations: 49.7 kB / 0.6591 GB, free: 1.148 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000359/0.5061, allocations: 0.4968 MB / 0.6596 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000358/0.5065, allocations: 366.9 kB / 0.66 GB, free: 288 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005076/0.507, allocations: 291.5 kB / 0.6603 GB, free: 15.99 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.365e-05/0.5071, allocations: 301.1 kB / 0.6605 GB, free: 15.69 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/0.5086, allocations: 0.7847 MB / 0.6613 GB, free: 14.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.5103, allocations: 0.9499 MB / 0.6622 GB, free: 13.91 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02362/0.5339, allocations: 5.794 MB / 0.6679 GB, free: 8.039 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.5339, allocations: 0 / 0.6679 GB, free: 8.039 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01321/0.5472, allocations: 4.453 MB / 0.6722 GB, free: 3.555 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.559e-05/0.5473, allocations: 63.39 kB / 0.6723 GB, free: 3.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.5473, allocations: 0 / 0.6723 GB, free: 3.48 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005739/0.553, allocations: 1.631 MB / 0.6739 GB, free: 1.848 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.5546, allocations: 291.6 kB / 0.6742 GB, free: 1.562 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/0.5739, allocations: 8.604 MB / 0.6826 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/0.5764, allocations: 210.5 kB / 0.6828 GB, free: 8.602 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.5765, allocations: 55.98 kB / 0.6828 GB, free: 8.547 MB / 494.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 (167): * Single equations (assignments): 164 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000747/0.5773, allocations: 307 kB / 0.6831 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/0.5775, allocations: 122.5 kB / 0.6832 GB, free: 8.109 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/0.5895, allocations: 3.908 MB / 0.6871 GB, free: 4.164 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.5896, allocations: 12 kB / 0.6871 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.5896, allocations: 4 kB / 0.6871 GB, free: 4.148 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.607e-05/0.5896, allocations: 3.984 kB / 0.6871 GB, free: 4.145 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.01431/0.604, allocations: 5.503 MB / 0.6925 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.604, allocations: 4 kB / 0.6925 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006466/0.6047, allocations: 103.8 kB / 0.6926 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005177/0.6098, allocations: 1.599 MB / 0.6941 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001392/0.61, allocations: 24 kB / 0.6941 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01902/0.629, allocations: 9.646 MB / 0.7036 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6291, allocations: 3.938 kB / 0.7036 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/0.6428, allocations: 4.77 MB / 0.7082 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005925/0.6434, allocations: 231.2 kB / 0.7084 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.6436, allocations: 27.88 kB / 0.7085 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.6448, allocations: 111.9 kB / 0.7086 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006696/0.6454, allocations: 192.7 kB / 0.7088 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.954e-05/0.6455, allocations: 27.98 kB / 0.7088 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001129/0.6467, allocations: 0.7553 MB / 0.7095 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6467, allocations: 0 / 0.7095 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001457/0.6481, allocations: 491.5 kB / 0.71 GB, free: 12.21 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01376/0.6619, allocations: 5.366 MB / 0.7152 GB, free: 6.797 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006698/0.6687, allocations: 2.597 MB / 0.7178 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.6687, allocations: 0 / 0.7178 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004123/0.6728, allocations: 1.587 MB / 0.7193 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.6741, allocations: 114.5 kB / 0.7194 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03931/0.7134, allocations: 16.51 MB / 0.7356 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008081/0.7143, allocations: 1.132 MB / 0.7367 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006592/0.715, allocations: 124.1 kB / 0.7368 GB, free: 408 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006907/0.7157, allocations: 479.3 kB / 0.7372 GB, free: 15.93 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/0.7157, allocations: 0 / 0.7372 GB, free: 15.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3934/1.109, allocations: 35.14 MB / 0.7715 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.81, allocations: 4.297 kB / 0.7716 GB, free: 139.6 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)