Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.001524/0.001524, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 222.9 MB / 239.3 MB, free: 4.621 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.00146/0.00146, allocations: 191.6 kB / 289.6 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5927/0.5927, allocations: 91.91 MB / 431.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 79.86 kB / 0.502 GB, free: 7.684 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5196/0.5214, allocations: 71.27 MB / 0.5716 GB, free: 36.61 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.008244/0.5297, allocations: 6.513 MB / 0.5779 GB, free: 32.87 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00489/0.5346, allocations: 1.965 MB / 0.5799 GB, free: 31.54 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008269/0.5355, allocations: 8.688 kB / 0.5799 GB, free: 31.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.5366, allocations: 242.2 kB / 0.5801 GB, free: 31.41 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002197/0.5388, allocations: 0.8041 MB / 0.5809 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.5401, allocations: 0.6189 MB / 0.5815 GB, free: 30.58 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.5416, allocations: 1.564 MB / 0.583 GB, free: 29.81 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005201/0.5421, allocations: 327.4 kB / 0.5833 GB, free: 29.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.5432, allocations: 0.6526 MB / 0.584 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009359/0.5441, allocations: 0.8255 MB / 0.5848 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002116/0.5443, allocations: 121.8 kB / 0.5849 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006494/0.545, allocations: 266.9 kB / 0.5851 GB, free: 28.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003389/0.5454, allocations: 331.4 kB / 0.5855 GB, free: 28.7 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005697/0.5459, allocations: 0.6689 MB / 0.5861 GB, free: 28.24 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001645/0.5476, allocations: 1.629 MB / 0.5877 GB, free: 27.51 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.5476, allocations: 3 kB / 0.5877 GB, free: 27.51 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.5476, allocations: 1.125 kB / 0.5877 GB, free: 27.51 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.5476, allocations: 0 / 0.5877 GB, free: 27.51 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.009011/0.5567, allocations: 2.692 MB / 0.5903 GB, free: 26.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.5567, allocations: 6.688 kB / 0.5903 GB, free: 26.24 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001583/0.5569, allocations: 128.8 kB / 0.5905 GB, free: 26.15 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00522/0.5621, allocations: 0.7776 MB / 0.5912 GB, free: 25.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.5637, allocations: 0.8907 MB / 0.5921 GB, free: 25.38 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/0.564, allocations: 258.2 kB / 0.5923 GB, free: 25.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001724/0.5642, allocations: 82.06 kB / 0.5924 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.5665, allocations: 1.08 MB / 0.5935 GB, free: 24.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.5665, allocations: 5.188 kB / 0.5935 GB, free: 24.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.185e-05/0.5666, allocations: 34.06 kB / 0.5935 GB, free: 24.69 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.5666, allocations: 18.88 kB / 0.5935 GB, free: 24.69 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002222/0.5689, allocations: 0.9887 MB / 0.5945 GB, free: 24.36 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.007223/0.5761, allocations: 3.822 MB / 0.5982 GB, free: 22.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008351/0.5845, allocations: 2.36 MB / 0.6005 GB, free: 21.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.5863, allocations: 0.6767 MB / 0.6012 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.5864, allocations: 16.41 kB / 0.6012 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001945/0.5884, allocations: 0.8115 MB / 0.602 GB, free: 20.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 5.01e-06/0.5884, allocations: 0 / 0.602 GB, free: 20.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.0347/0.6231, allocations: 7.19 MB / 0.609 GB, free: 19.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.6233, allocations: 122.1 kB / 0.6091 GB, free: 19.21 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/0.6261, allocations: 1.09 MB / 0.6102 GB, free: 18.76 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002586/0.6263, allocations: 45.27 kB / 0.6102 GB, free: 18.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004425/0.6268, allocations: 498.3 kB / 0.6107 GB, free: 18.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004478/0.6272, allocations: 352.7 kB / 0.6111 GB, free: 18.05 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000842/0.6281, allocations: 279.9 kB / 0.6113 GB, free: 17.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.707e-05/0.6282, allocations: 305.1 kB / 0.6116 GB, free: 17.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001915/0.6301, allocations: 0.7527 MB / 0.6123 GB, free: 17.35 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001888/0.632, allocations: 0.9386 MB / 0.6133 GB, free: 16.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02418/0.6562, allocations: 5.57 MB / 0.6187 GB, free: 13.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/0.6563, allocations: 0 / 0.6187 GB, free: 13.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01294/0.6692, allocations: 4.368 MB / 0.623 GB, free: 9.395 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.6694, allocations: 59.41 kB / 0.623 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/0.6695, allocations: 0 / 0.623 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00608/0.6756, allocations: 1.588 MB / 0.6246 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.6773, allocations: 283.6 kB / 0.6248 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02402/0.7014, allocations: 8.514 MB / 0.6332 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/0.7047, allocations: 206.6 kB / 0.6334 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003049/0.705, allocations: 55.97 kB / 0.6334 GB, free: 14.53 MB / 446.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.001088/0.7061, allocations: 296.2 kB / 0.6337 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005472/0.7067, allocations: 126.5 kB / 0.6338 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0146/0.7213, allocations: 3.873 MB / 0.6376 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-05/0.7214, allocations: 8 kB / 0.6376 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.862e-05/0.7215, allocations: 11.94 kB / 0.6376 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.965e-05/0.7215, allocations: 3.984 kB / 0.6376 GB, free: 10.18 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 postOpt removeSimpleEquations (simulation): time 0.01862/0.7402, allocations: 5.446 MB / 0.6429 GB, free: 4.617 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.31e-05/0.7403, allocations: 0 / 0.6429 GB, free: 4.617 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009108/0.7412, allocations: 103.9 kB / 0.643 GB, free: 4.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006737/0.748, allocations: 1.607 MB / 0.6446 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003014/0.7483, allocations: 23.92 kB / 0.6446 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02379/0.7721, allocations: 9.65 MB / 0.6541 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.7722, allocations: 0 / 0.6541 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/0.7897, allocations: 4.721 MB / 0.6587 GB, free: 4.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.7911, allocations: 227.3 kB / 0.6589 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.7913, allocations: 19.94 kB / 0.6589 GB, free: 3.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.7926, allocations: 107.9 kB / 0.659 GB, free: 3.812 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006981/0.7933, allocations: 196.7 kB / 0.6592 GB, free: 3.617 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/0.7934, allocations: 24 kB / 0.6592 GB, free: 3.594 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001329/0.7947, allocations: 0.7354 MB / 0.6599 GB, free: 2.852 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7948, allocations: 0 / 0.6599 GB, free: 2.852 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001964/0.7967, allocations: 475.5 kB / 0.6604 GB, free: 2.387 MB / 462.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.01605/0.8128, allocations: 5.308 MB / 0.6656 GB, free: 13.03 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007674/0.8205, allocations: 2.555 MB / 0.6681 GB, free: 10.43 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.8206, allocations: 0 / 0.6681 GB, free: 10.43 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004799/0.8254, allocations: 1.604 MB / 0.6696 GB, free: 8.793 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.8269, allocations: 116.1 kB / 0.6697 GB, free: 8.684 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0429/0.8698, allocations: 16.77 MB / 0.6861 GB, free: 7.461 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/0.8711, allocations: 1.12 MB / 0.6872 GB, free: 6.312 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009019/0.872, allocations: 116.1 kB / 0.6873 GB, free: 6.195 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007857/0.8728, allocations: 475.3 kB / 0.6878 GB, free: 5.73 MB / 494.1 MB Notification: Performance of SimCode: time 2.074e-06/0.8728, allocations: 0 / 0.6878 GB, free: 5.73 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/0.9798, allocations: 33.86 MB / 0.7208 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/15.6, allocations: 20.06 kB / 0.7209 GB, free: 4.035 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)