Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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: translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00755/0.00755, allocations: 101.5 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.314/1.314, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001427/0.001427, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.442/0.442, allocations: 78.52 MB / 418.4 MB, free: 3.148 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 83.86 kB / 0.5537 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3212, allocations: 68.17 MB / 0.6203 GB, free: 9.836 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.009881/0.3311, allocations: 13.58 MB / 0.6335 GB, free: 12.56 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007132/0.3383, allocations: 3.452 MB / 0.6369 GB, free: 9.102 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.3399, allocations: 28 kB / 0.6369 GB, free: 9.074 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.3413, allocations: 0.5693 MB / 0.6375 GB, free: 8.496 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003781/0.3451, allocations: 1.426 MB / 0.6389 GB, free: 7.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003437/0.3485, allocations: 1.5 MB / 0.6403 GB, free: 5.59 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005154/0.3537, allocations: 3.714 MB / 0.6439 GB, free: 1.859 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.3553, allocations: 0.9012 MB / 0.6448 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003035/0.3584, allocations: 1.528 MB / 0.6463 GB, free: 15.37 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002734/0.3611, allocations: 1.964 MB / 0.6482 GB, free: 13.4 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007463/0.3619, allocations: 284 kB / 0.6485 GB, free: 13.12 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.363, allocations: 427.9 kB / 0.6489 GB, free: 12.7 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007039/0.3637, allocations: 0.7623 MB / 0.6497 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001745/0.3655, allocations: 1.631 MB / 0.6513 GB, free: 10.3 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004334/0.3698, allocations: 3.975 MB / 0.6551 GB, free: 6.312 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3698, allocations: 0 / 0.6551 GB, free: 6.312 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3698, allocations: 0 / 0.6551 GB, free: 6.312 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.404e-05/0.3699, allocations: 0 / 0.6551 GB, free: 6.312 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02158/0.3915, allocations: 6.579 MB / 0.6616 GB, free: 15.63 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3915, allocations: 12.03 kB / 0.6616 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01446/0.406, allocations: 2.275 MB / 0.6638 GB, free: 13.34 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003391/0.4094, allocations: 1.878 MB / 0.6656 GB, free: 11.4 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006975/0.4101, allocations: 0.7328 MB / 0.6663 GB, free: 10.55 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004554/0.4106, allocations: 212 kB / 0.6665 GB, free: 10.34 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005777/0.4164, allocations: 3.031 MB / 0.6695 GB, free: 7.234 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.239e-05/0.4164, allocations: 4 kB / 0.6695 GB, free: 7.23 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002324/0.4167, allocations: 91.92 kB / 0.6696 GB, free: 7.141 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.941e-05/0.4167, allocations: 48 kB / 0.6696 GB, free: 7.094 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005908/0.4226, allocations: 2.78 MB / 0.6724 GB, free: 4.297 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.0177/0.4404, allocations: 9.79 MB / 0.6819 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009888/0.4503, allocations: 4.18 MB / 0.686 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003769/0.4541, allocations: 1.96 MB / 0.6879 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002851/0.4544, allocations: 45.95 kB / 0.688 GB, free: 3.766 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004203/0.4586, allocations: 2.228 MB / 0.6901 GB, free: 1.516 MB / 494.1 MB Notification: Performance of pre-optimization done (n=247): time 4.388e-06/0.4586, allocations: 0 / 0.6901 GB, free: 1.516 MB / 494.1 MB Notification: Performance of matching and sorting (n=247): time 0.1126/0.5713, allocations: 29.47 MB / 0.7189 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.5714, allocations: 180.2 kB / 0.7191 GB, free: 3.703 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003369/0.5748, allocations: 2.273 MB / 0.7213 GB, free: 1.41 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006567/0.5755, allocations: 77.69 kB / 0.7214 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008649/0.5763, allocations: 1.176 MB / 0.7225 GB, free: 144 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.5773, allocations: 0.8706 MB / 0.7234 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.5785, allocations: 0.5539 MB / 0.7239 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.433e-05/0.5786, allocations: 309.1 kB / 0.7242 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00406/0.5826, allocations: 1.947 MB / 0.7261 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004441/0.5871, allocations: 2.31 MB / 0.7284 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05173/0.6388, allocations: 14 MB / 0.742 GB, free: 11.81 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.6389, allocations: 0 / 0.742 GB, free: 11.81 MB / 0.545 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.037/0.6759, allocations: 12.28 MB / 0.754 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.676, allocations: 129.3 kB / 0.7542 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/0.6761, allocations: 7.938 kB / 0.7542 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01703/0.6931, allocations: 5.313 MB / 0.7594 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002817/0.696, allocations: 0.5695 MB / 0.7599 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3373/1.033, allocations: 23.48 MB / 0.7828 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/1.037, allocations: 494.9 kB / 0.7833 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003876/1.038, allocations: 116.8 kB / 0.7834 GB, free: 121 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 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 order3_1.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 (325): * Single equations (assignments): 320 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001217/1.039, allocations: 0.5165 MB / 0.7839 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006321/1.04, allocations: 299.8 kB / 0.7842 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03283/1.072, allocations: 11.9 MB / 0.7958 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-05/1.072, allocations: 23.59 kB / 0.7959 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.328e-05/1.072, allocations: 22.25 kB / 0.7959 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-05/1.073, allocations: 11.58 kB / 0.7959 GB, free: 118.1 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.038/1.111, allocations: 15.49 MB / 0.811 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.232e-05/1.111, allocations: 4.062 kB / 0.811 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/1.112, allocations: 239.7 kB / 0.8112 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01503/1.127, allocations: 5.277 MB / 0.8164 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007356/1.128, allocations: 58.17 kB / 0.8165 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04737/1.175, allocations: 24.94 MB / 0.8408 GB, free: 77.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/1.175, allocations: 0 / 0.8408 GB, free: 77.12 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0369/1.212, allocations: 14.26 MB / 0.8547 GB, free: 62.76 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008888/1.213, allocations: 416.2 kB / 0.8551 GB, free: 62.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004854/1.214, allocations: 44 kB / 0.8552 GB, free: 62.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002598/1.216, allocations: 299.6 kB / 0.8555 GB, free: 62 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001938/1.218, allocations: 0.5841 MB / 0.856 GB, free: 61.42 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000197/1.219, allocations: 67.98 kB / 0.8561 GB, free: 61.35 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001831/1.22, allocations: 1.499 MB / 0.8576 GB, free: 59.85 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/1.22, allocations: 0 / 0.8576 GB, free: 59.85 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002964/1.223, allocations: 1.177 MB / 0.8587 GB, free: 58.67 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * 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 {(66,22,7.7%)} * 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.0003867/1.224, allocations: 178.9 kB / 0.8589 GB, free: 58.49 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0146/1.238, allocations: 6.699 MB / 0.8654 GB, free: 51.72 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.238, allocations: 0.5625 kB / 0.8654 GB, free: 51.72 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01042/1.249, allocations: 4.409 MB / 0.8697 GB, free: 47.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/1.251, allocations: 267.2 kB / 0.87 GB, free: 46.99 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008172/1.259, allocations: 5.263 MB / 0.8751 GB, free: 41.71 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009247/1.26, allocations: 1.802 MB / 0.8769 GB, free: 39.88 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008074/1.261, allocations: 258.5 kB / 0.8771 GB, free: 39.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004903/1.261, allocations: 175.4 kB / 0.8773 GB, free: 39.45 MB / 0.5606 GB Notification: Performance of SimCode: time 1.122e-06/1.261, allocations: 0 / 0.8773 GB, free: 39.45 MB / 0.5606 GB Notification: Performance of Templates: time 0.0899/1.351, allocations: 65.69 MB / 0.9414 GB, free: 5.797 MB / 0.5919 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)