Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.001365/0.001365, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.34/1.34, allocations: 222.9 MB / 239 MB, free: 4.703 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.001762/0.001762, allocations: 200.4 kB / 289.2 MB, free: 2.434 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4592/0.4592, allocations: 78.51 MB / 417.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 76.16 kB / 497 MB, free: 6.605 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1631, allocations: 68.17 MB / 0.552 GB, free: 2.387 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2874/0.4506, allocations: 14.46 MB / 0.5661 GB, free: 30.95 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008241/0.4589, allocations: 3.597 MB / 0.5696 GB, free: 29.9 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003285/0.4622, allocations: 37.72 kB / 0.5696 GB, free: 29.9 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.4638, allocations: 429.5 kB / 0.57 GB, free: 29.75 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00434/0.4681, allocations: 1.21 MB / 0.5712 GB, free: 29.18 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_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003065/0.4712, allocations: 1.427 MB / 0.5726 GB, free: 28.99 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004508/0.4757, allocations: 3.696 MB / 0.5762 GB, free: 28.15 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.4769, allocations: 0.8992 MB / 0.5771 GB, free: 27.93 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002338/0.4792, allocations: 1.541 MB / 0.5786 GB, free: 27.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001975/0.4812, allocations: 1.946 MB / 0.5805 GB, free: 26.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003888/0.4816, allocations: 285.1 kB / 0.5808 GB, free: 26.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008705/0.4825, allocations: 433.7 kB / 0.5812 GB, free: 26.83 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005028/0.483, allocations: 0.7651 MB / 0.5819 GB, free: 26.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001195/0.4842, allocations: 1.639 MB / 0.5835 GB, free: 25.21 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003443/0.4877, allocations: 3.92 MB / 0.5874 GB, free: 23.39 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4877, allocations: 0 / 0.5874 GB, free: 23.39 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4877, allocations: 0 / 0.5874 GB, free: 23.39 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.239e-05/0.4877, allocations: 4 kB / 0.5874 GB, free: 23.39 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.0239/0.5117, allocations: 6.576 MB / 0.5938 GB, free: 20.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/0.5117, allocations: 9.312 kB / 0.5938 GB, free: 20.77 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004255/0.5122, allocations: 303.5 kB / 0.5941 GB, free: 20.58 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01498/0.5271, allocations: 2.277 MB / 0.5963 GB, free: 20.14 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00482/0.532, allocations: 1.875 MB / 0.5981 GB, free: 18.98 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006764/0.5327, allocations: 0.7188 MB / 0.5989 GB, free: 18.33 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006156/0.5333, allocations: 215.9 kB / 0.5991 GB, free: 18.26 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007207/0.5406, allocations: 3.033 MB / 0.602 GB, free: 17.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.099e-05/0.5406, allocations: 4.812 kB / 0.602 GB, free: 17.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002501/0.5409, allocations: 85.84 kB / 0.6021 GB, free: 17.04 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.237e-05/0.541, allocations: 55.75 kB / 0.6022 GB, free: 17.03 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006342/0.5473, allocations: 2.787 MB / 0.6049 GB, free: 16.09 MB / 430.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.02362/0.5709, allocations: 9.882 MB / 0.6145 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/0.5826, allocations: 4.193 MB / 0.6186 GB, free: 8.746 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004665/0.5873, allocations: 1.963 MB / 0.6205 GB, free: 7.738 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005632/0.5879, allocations: 48.08 kB / 0.6206 GB, free: 7.719 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005832/0.5938, allocations: 2.229 MB / 0.6228 GB, free: 6.336 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 8.236e-06/0.5938, allocations: 0 / 0.6228 GB, free: 6.336 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1158/0.7097, allocations: 27.31 MB / 0.6494 GB, free: 10.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.7098, allocations: 192.2 kB / 0.6496 GB, free: 10.68 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004596/0.7144, allocations: 2.265 MB / 0.6518 GB, free: 8.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00089/0.7153, allocations: 73.69 kB / 0.6519 GB, free: 8.312 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001103/0.7165, allocations: 1.164 MB / 0.653 GB, free: 7.137 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001663/0.7181, allocations: 0.8743 MB / 0.6539 GB, free: 6.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002789/0.7209, allocations: 0.5618 MB / 0.6544 GB, free: 5.68 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.7211, allocations: 301.1 kB / 0.6547 GB, free: 5.383 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004755/0.7258, allocations: 1.955 MB / 0.6566 GB, free: 3.426 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005095/0.7309, allocations: 2.321 MB / 0.6589 GB, free: 1.016 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05593/0.7869, allocations: 14.07 MB / 0.6726 GB, free: 2.727 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-05/0.7869, allocations: 7.938 kB / 0.6727 GB, free: 2.719 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04357/0.8305, allocations: 12.5 MB / 0.6849 GB, free: 6.148 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.8307, allocations: 116.4 kB / 0.685 GB, free: 6.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.978e-05/0.8307, allocations: 12 kB / 0.685 GB, free: 6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01798/0.8487, allocations: 5.296 MB / 0.6902 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003148/0.8519, allocations: 0.5656 MB / 0.6907 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06593/0.9179, allocations: 23.2 MB / 0.7134 GB, free: 8.766 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006465/0.9244, allocations: 493 kB / 0.7138 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001264/0.9257, allocations: 120 kB / 0.714 GB, free: 8.164 MB / 0.5137 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_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 (330): * Single equations (assignments): 325 * 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.003479/0.9292, allocations: 0.5325 MB / 0.7145 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002033/0.9312, allocations: 296.3 kB / 0.7148 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04467/0.976, allocations: 11.9 MB / 0.7264 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.143e-05/0.9761, allocations: 28 kB / 0.7264 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.491e-05/0.9762, allocations: 16.62 kB / 0.7264 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001062/0.9763, allocations: 15.95 kB / 0.7264 GB, free: 11.31 MB / 0.5294 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.05004/1.026, allocations: 15.5 MB / 0.7416 GB, free: 11.65 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.944e-05/1.026, allocations: 0 / 0.7416 GB, free: 11.65 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001749/1.028, allocations: 256.2 kB / 0.7418 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01777/1.046, allocations: 5.252 MB / 0.7469 GB, free: 6.129 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007938/1.047, allocations: 51.98 kB / 0.747 GB, free: 6.078 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3413/1.388, allocations: 24.96 MB / 0.7714 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.388, allocations: 2.594 kB / 0.7714 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04282/1.431, allocations: 14.28 MB / 0.7853 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.432, allocations: 406.4 kB / 0.7857 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000735/1.433, allocations: 46.94 kB / 0.7857 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00303/1.436, allocations: 299.1 kB / 0.786 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002263/1.438, allocations: 0.5882 MB / 0.7866 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002574/1.439, allocations: 67.94 kB / 0.7867 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002443/1.441, allocations: 1.501 MB / 0.7881 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.441, allocations: 0 / 0.7881 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004584/1.446, allocations: 1.177 MB / 0.7893 GB, free: 164.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (157): * Single equations (assignments): 152 * 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 {(65,23,7.8%)} * 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.04804/1.494, allocations: 14.89 MB / 0.8038 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0232/1.517, allocations: 6.728 MB / 0.8104 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/1.517, allocations: 1.375 kB / 0.8104 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0139/1.531, allocations: 4.413 MB / 0.8147 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004888/1.536, allocations: 269.7 kB / 0.815 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1176/1.653, allocations: 47.05 MB / 0.8609 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001946/1.655, allocations: 1.806 MB / 0.8627 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001784/1.657, allocations: 267.4 kB / 0.8629 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/1.659, allocations: 1.23 MB / 0.8641 GB, free: 113 MB / 0.5606 GB Notification: Performance of SimCode: time 1.493e-06/1.659, allocations: 0 / 0.8641 GB, free: 113 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.148/1.807, allocations: 84.33 MB / 0.9465 GB, free: 29.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/1.807, allocations: 242.8 kB / 0.9467 GB, free: 28.92 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.385/6.192, allocations: 0 / 0.9467 GB, free: 28.92 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)