Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.009003/0.009003, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.453/1.453, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001756/0.001756, allocations: 184.5 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.4673/0.4673, allocations: 78.54 MB / 418.4 MB, free: 3.164 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 84.09 kB / 0.5532 GB, free: 1.375 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3966, allocations: 68.16 MB / 0.6198 GB, free: 9.414 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.01062/0.4072, allocations: 13.77 MB / 0.6332 GB, free: 12.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008968/0.4162, allocations: 3.499 MB / 0.6366 GB, free: 8.809 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003532/0.4199, allocations: 31.94 kB / 0.6367 GB, free: 8.777 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00198/0.4219, allocations: 0.5615 MB / 0.6372 GB, free: 8.207 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005761/0.4276, allocations: 1.572 MB / 0.6388 GB, free: 6.633 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00372/0.4314, allocations: 1.52 MB / 0.6402 GB, free: 5.133 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00563/0.437, allocations: 3.784 MB / 0.6439 GB, free: 1.332 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.4384, allocations: 0.8995 MB / 0.6448 GB, free: 392 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002507/0.4409, allocations: 1.552 MB / 0.6463 GB, free: 14.82 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002645/0.4436, allocations: 1.991 MB / 0.6483 GB, free: 12.82 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005462/0.4441, allocations: 295.9 kB / 0.6486 GB, free: 12.54 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009839/0.4451, allocations: 435.9 kB / 0.649 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006557/0.4458, allocations: 0.7779 MB / 0.6497 GB, free: 11.33 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001655/0.4475, allocations: 1.647 MB / 0.6513 GB, free: 9.672 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004414/0.4519, allocations: 4.017 MB / 0.6553 GB, free: 5.641 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.4519, allocations: 0 / 0.6553 GB, free: 5.641 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4519, allocations: 0 / 0.6553 GB, free: 5.641 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.538e-05/0.452, allocations: 0 / 0.6553 GB, free: 5.641 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.02277/0.4748, allocations: 6.649 MB / 0.6617 GB, free: 14.89 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.4748, allocations: 8.031 kB / 0.6618 GB, free: 14.89 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004191/0.4753, allocations: 303.3 kB / 0.662 GB, free: 14.58 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01475/0.49, allocations: 2.279 MB / 0.6643 GB, free: 12.29 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004998/0.4951, allocations: 1.902 MB / 0.6661 GB, free: 10.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000729/0.4958, allocations: 0.7252 MB / 0.6668 GB, free: 9.484 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005701/0.4964, allocations: 216 kB / 0.667 GB, free: 9.273 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006344/0.5028, allocations: 3.039 MB / 0.67 GB, free: 6.156 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.265e-05/0.5028, allocations: 3.984 kB / 0.67 GB, free: 6.152 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/0.5031, allocations: 87.94 kB / 0.6701 GB, free: 6.066 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.342e-05/0.5031, allocations: 52 kB / 0.6701 GB, free: 6.016 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005877/0.509, allocations: 2.792 MB / 0.6729 GB, free: 3.207 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.01939/0.5284, allocations: 9.864 MB / 0.6825 GB, free: 8.918 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0102/0.5387, allocations: 4.211 MB / 0.6866 GB, free: 4.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004096/0.5428, allocations: 1.972 MB / 0.6885 GB, free: 2.602 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003033/0.5431, allocations: 37.97 kB / 0.6886 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004469/0.5476, allocations: 2.248 MB / 0.6908 GB, free: 300 kB / 494.1 MB Notification: Performance of pre-optimization done (n=249): time 4.959e-06/0.5476, allocations: 0 / 0.6908 GB, free: 300 kB / 494.1 MB Notification: Performance of matching and sorting (n=249): time 0.1112/0.6588, allocations: 27.42 MB / 0.7176 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.659, allocations: 184.2 kB / 0.7177 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004736/0.6637, allocations: 2.313 MB / 0.72 GB, free: 2.203 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007991/0.6646, allocations: 69.7 kB / 0.7201 GB, free: 2.129 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.6657, allocations: 1.176 MB / 0.7212 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0016/0.6673, allocations: 0.8859 MB / 0.7221 GB, free: 44 kB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00267/0.67, allocations: 0.5659 MB / 0.7226 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.6701, allocations: 301.1 kB / 0.7229 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004773/0.6749, allocations: 1.974 MB / 0.7248 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005074/0.68, allocations: 2.342 MB / 0.7271 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05538/0.7354, allocations: 14.24 MB / 0.741 GB, free: 12.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.332e-05/0.7355, allocations: 7.938 kB / 0.741 GB, free: 12.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.04197/0.7774, allocations: 12.55 MB / 0.7533 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/0.7776, allocations: 117.1 kB / 0.7534 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.43e-05/0.7777, allocations: 12 kB / 0.7534 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01721/0.7949, allocations: 5.257 MB / 0.7586 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003341/0.7983, allocations: 0.589 MB / 0.7591 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4033/1.202, allocations: 23.16 MB / 0.7817 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004514/1.206, allocations: 493.3 kB / 0.7822 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000472/1.207, allocations: 113.7 kB / 0.7823 GB, free: 120.8 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 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.delta:VARIABLE(flow=false start = Syn2.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (334): * Single equations (assignments): 329 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001348/1.208, allocations: 0.5434 MB / 0.7829 GB, free: 120.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006885/1.209, allocations: 294.8 kB / 0.7831 GB, free: 120.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03459/1.243, allocations: 11.93 MB / 0.7948 GB, free: 117.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.843e-05/1.243, allocations: 27.62 kB / 0.7948 GB, free: 117.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.2e-05/1.243, allocations: 20.7 kB / 0.7948 GB, free: 117.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.098e-05/1.243, allocations: 15.05 kB / 0.7948 GB, free: 117.9 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.03897/1.282, allocations: 15.55 MB / 0.81 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.002e-05/1.283, allocations: 0 / 0.81 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/1.284, allocations: 247.7 kB / 0.8103 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0153/1.299, allocations: 5.302 MB / 0.8154 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007454/1.3, allocations: 55.98 kB / 0.8155 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04916/1.349, allocations: 24.92 MB / 0.8398 GB, free: 77.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.349, allocations: 7.172 kB / 0.8398 GB, free: 77.42 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03845/1.388, allocations: 14.3 MB / 0.8538 GB, free: 63 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009907/1.389, allocations: 423.3 kB / 0.8542 GB, free: 62.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000656/1.39, allocations: 48 kB / 0.8543 GB, free: 62.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00279/1.392, allocations: 295.6 kB / 0.8545 GB, free: 62.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002035/1.394, allocations: 0.5878 MB / 0.8551 GB, free: 61.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002102/1.395, allocations: 63.98 kB / 0.8552 GB, free: 61.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001928/1.397, allocations: 1.531 MB / 0.8567 GB, free: 60.06 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.397, allocations: 0 / 0.8567 GB, free: 60.06 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003564/1.4, allocations: 1.181 MB / 0.8578 GB, free: 58.88 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,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 (158): * Single equations (assignments): 153 * 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 {(67,21,7.5%)} * 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.03825/1.438, allocations: 14.94 MB / 0.8724 GB, free: 43.81 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01607/1.455, allocations: 6.664 MB / 0.8789 GB, free: 37.06 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.455, allocations: 0 / 0.8789 GB, free: 37.06 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01186/1.466, allocations: 4.434 MB / 0.8833 GB, free: 32.55 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003725/1.47, allocations: 270 kB / 0.8835 GB, free: 32.29 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09915/1.569, allocations: 42.1 MB / 0.9246 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001497/1.571, allocations: 1.811 MB / 0.9264 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001272/1.572, allocations: 266.6 kB / 0.9266 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/1.574, allocations: 1.237 MB / 0.9279 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of SimCode: time 1.463e-06/1.574, allocations: 4 kB / 0.9279 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1529/1.727, allocations: 88.44 MB / 1.014 GB, free: 10.18 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/20.53, allocations: 8.062 kB / 1.014 GB, free: 10.17 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)