Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_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.001352/0.001352, 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.396/1.396, allocations: 222.9 MB / 239 MB, free: 4.734 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.001506/0.001506, allocations: 200.4 kB / 289.3 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4461/0.4461, allocations: 78.53 MB / 417.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 79.88 kB / 497 MB, free: 6.613 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1262, allocations: 68.17 MB / 0.552 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.261/0.3872, allocations: 6.809 MB / 0.5586 GB, free: 35.88 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004125/0.3914, allocations: 1.977 MB / 0.5605 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.3926, allocations: 11.91 kB / 0.5606 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008353/0.3935, allocations: 186.7 kB / 0.5607 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002225/0.3957, allocations: 0.7074 MB / 0.5614 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.3969, allocations: 0.5722 MB / 0.562 GB, free: 35.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00167/0.3986, allocations: 1.579 MB / 0.5635 GB, free: 35.01 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004305/0.399, allocations: 323.2 kB / 0.5638 GB, free: 34.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007547/0.3998, allocations: 0.6528 MB / 0.5645 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006998/0.4005, allocations: 0.8275 MB / 0.5653 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000167/0.4007, allocations: 119.4 kB / 0.5654 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.4012, allocations: 261.9 kB / 0.5656 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002296/0.4014, allocations: 335.3 kB / 0.566 GB, free: 34.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004436/0.4019, allocations: 0.6724 MB / 0.5666 GB, free: 34.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.4032, allocations: 1.637 MB / 0.5682 GB, free: 33.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4032, allocations: 0 / 0.5682 GB, free: 33.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4032, allocations: 0.7188 kB / 0.5682 GB, free: 33.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.4032, allocations: 0 / 0.5682 GB, free: 33.91 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008452/0.4117, allocations: 2.683 MB / 0.5708 GB, free: 32.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.4118, allocations: 11.38 kB / 0.5709 GB, free: 32.94 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/0.4119, allocations: 133.6 kB / 0.571 GB, free: 32.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004707/0.4166, allocations: 0.7755 MB / 0.5717 GB, free: 32.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.4181, allocations: 0.8906 MB / 0.5726 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002296/0.4183, allocations: 252.2 kB / 0.5728 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.4185, allocations: 85.38 kB / 0.5729 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.4203, allocations: 1.091 MB / 0.574 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.4204, allocations: 3.844 kB / 0.574 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.952e-05/0.4205, allocations: 28.38 kB / 0.574 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.4205, allocations: 18.38 kB / 0.574 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.4223, allocations: 0.981 MB / 0.575 GB, free: 32.1 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.005506/0.4278, allocations: 3.827 MB / 0.5787 GB, free: 30.33 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006504/0.4343, allocations: 2.373 MB / 0.5811 GB, free: 29.5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.4357, allocations: 0.6693 MB / 0.5817 GB, free: 29.24 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.4358, allocations: 22.53 kB / 0.5817 GB, free: 29.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001522/0.4373, allocations: 0.8144 MB / 0.5825 GB, free: 28.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 2.895e-06/0.4373, allocations: 0 / 0.5825 GB, free: 28.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.02942/0.4667, allocations: 7.185 MB / 0.5895 GB, free: 27.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.4669, allocations: 121.3 kB / 0.5897 GB, free: 27.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001929/0.4688, allocations: 1.093 MB / 0.5907 GB, free: 26.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002571/0.4691, allocations: 42.92 kB / 0.5908 GB, free: 26.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000323/0.4694, allocations: 497.8 kB / 0.5912 GB, free: 26.52 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003628/0.4698, allocations: 351.8 kB / 0.5916 GB, free: 26.24 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005107/0.4703, allocations: 283.4 kB / 0.5918 GB, free: 26.11 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.879e-05/0.4703, allocations: 301.7 kB / 0.5921 GB, free: 25.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.472, allocations: 0.7572 MB / 0.5929 GB, free: 25.54 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/0.4737, allocations: 0.9279 MB / 0.5938 GB, free: 25.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02444/0.4981, allocations: 5.571 MB / 0.5992 GB, free: 23.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.4982, allocations: 0.5625 kB / 0.5992 GB, free: 23.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01482/0.513, allocations: 4.358 MB / 0.6035 GB, free: 22.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.5132, allocations: 59.3 kB / 0.6035 GB, free: 22.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/0.5132, allocations: 3.531 kB / 0.6035 GB, free: 22.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006495/0.5197, allocations: 1.595 MB / 0.6051 GB, free: 21.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001709/0.5215, allocations: 281.7 kB / 0.6054 GB, free: 21.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/0.5422, allocations: 8.508 MB / 0.6137 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/0.545, allocations: 198.7 kB / 0.6139 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002791/0.5453, allocations: 55.97 kB / 0.6139 GB, free: 15.52 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.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 order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001128/0.5464, allocations: 301.9 kB / 0.6142 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005061/0.5469, allocations: 126.6 kB / 0.6143 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/0.5591, allocations: 3.877 MB / 0.6181 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/0.5592, allocations: 8.5 kB / 0.6181 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/0.5592, allocations: 11.94 kB / 0.6181 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.043e-05/0.5593, allocations: 3.984 kB / 0.6181 GB, free: 11.16 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 postOpt removeSimpleEquations (simulation): time 0.01407/0.5733, allocations: 5.446 MB / 0.6235 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/0.5734, allocations: 0.9375 kB / 0.6235 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006374/0.574, allocations: 99.83 kB / 0.6235 GB, free: 5.508 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005082/0.5791, allocations: 1.614 MB / 0.6251 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001982/0.5794, allocations: 21.06 kB / 0.6251 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01922/0.5986, allocations: 9.648 MB / 0.6346 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5986, allocations: 0 / 0.6346 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01414/0.6128, allocations: 4.729 MB / 0.6392 GB, free: 5.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005591/0.6134, allocations: 219.3 kB / 0.6394 GB, free: 4.926 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.6136, allocations: 23.94 kB / 0.6394 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.6147, allocations: 111.9 kB / 0.6395 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006494/0.6154, allocations: 196.7 kB / 0.6397 GB, free: 4.598 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.944e-05/0.6155, allocations: 20.94 kB / 0.6397 GB, free: 4.578 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001101/0.6166, allocations: 0.7393 MB / 0.6405 GB, free: 3.832 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6166, allocations: 0 / 0.6405 GB, free: 3.832 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001446/0.6181, allocations: 467.5 kB / 0.6409 GB, free: 3.375 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01469/0.6328, allocations: 5.31 MB / 0.6461 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006868/0.6397, allocations: 2.557 MB / 0.6486 GB, free: 11.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6397, allocations: 0 / 0.6486 GB, free: 11.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004256/0.644, allocations: 1.589 MB / 0.6501 GB, free: 9.805 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.6452, allocations: 124 kB / 0.6503 GB, free: 9.691 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03947/0.6846, allocations: 17.15 MB / 0.667 GB, free: 8.121 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006868/0.6854, allocations: 1.116 MB / 0.6681 GB, free: 6.977 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000629/0.686, allocations: 119.4 kB / 0.6682 GB, free: 6.859 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006146/0.6866, allocations: 479.3 kB / 0.6687 GB, free: 6.391 MB / 478.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6867, allocations: 4 kB / 0.6687 GB, free: 6.387 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05901/0.7457, allocations: 33.03 MB / 0.7009 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002095/0.7459, allocations: 234.7 kB / 0.7011 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.741/3.487, allocations: 0 / 0.7011 GB, free: 5.551 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)