Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_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.006672/0.006672, allocations: 103.5 kB / 15.74 MB, free: 5.957 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.505/1.505, allocations: 222.9 MB / 239.4 MB, free: 4.441 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.001644/0.001644, allocations: 184.5 kB / 289.7 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5/0.5, allocations: 78.53 MB / 418.4 MB, free: 3.129 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 79.81 kB / 0.5531 GB, free: 1.395 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.446/0.4477, allocations: 68.18 MB / 0.6197 GB, free: 9.336 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.006592/0.4543, allocations: 6.708 MB / 0.6263 GB, free: 3.379 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004281/0.4587, allocations: 2.013 MB / 0.6282 GB, free: 1.359 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009845/0.4597, allocations: 8 kB / 0.6282 GB, free: 1.352 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007534/0.4605, allocations: 245.9 kB / 0.6285 GB, free: 1.109 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.4625, allocations: 0.8797 MB / 0.6293 GB, free: 236 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.4638, allocations: 0.6446 MB / 0.63 GB, free: 15.59 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001859/0.4657, allocations: 1.671 MB / 0.6316 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004983/0.4662, allocations: 332.7 kB / 0.6319 GB, free: 13.58 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009085/0.4671, allocations: 0.6886 MB / 0.6326 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009174/0.468, allocations: 0.8752 MB / 0.6334 GB, free: 12.01 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.4682, allocations: 132 kB / 0.6336 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005173/0.4688, allocations: 275.8 kB / 0.6338 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003086/0.4691, allocations: 338.6 kB / 0.6342 GB, free: 11.28 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006206/0.4697, allocations: 0.7069 MB / 0.6348 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001836/0.4715, allocations: 1.728 MB / 0.6365 GB, free: 8.832 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4716, allocations: 4 kB / 0.6365 GB, free: 8.828 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4716, allocations: 0 / 0.6365 GB, free: 8.828 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.4716, allocations: 0 / 0.6365 GB, free: 8.828 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.008929/0.4805, allocations: 2.774 MB / 0.6392 GB, free: 5.984 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.4806, allocations: 12.03 kB / 0.6393 GB, free: 5.973 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001679/0.4808, allocations: 126.7 kB / 0.6394 GB, free: 5.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004858/0.4856, allocations: 0.7787 MB / 0.6401 GB, free: 5.059 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.4874, allocations: 0.9256 MB / 0.641 GB, free: 4.078 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002747/0.4877, allocations: 260.2 kB / 0.6413 GB, free: 3.785 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.4879, allocations: 91.91 kB / 0.6414 GB, free: 3.695 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002075/0.49, allocations: 1.11 MB / 0.6425 GB, free: 2.574 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.49, allocations: 0 / 0.6425 GB, free: 2.574 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-05/0.4901, allocations: 32 kB / 0.6425 GB, free: 2.543 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.4901, allocations: 20 kB / 0.6425 GB, free: 2.523 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.4921, allocations: 1.007 MB / 0.6435 GB, free: 1.516 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 preOpt removeSimpleEquations (simulation): time 0.006862/0.499, allocations: 3.899 MB / 0.6473 GB, free: 13.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006993/0.506, allocations: 2.402 MB / 0.6497 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.5075, allocations: 0.6995 MB / 0.6503 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.5077, allocations: 16.98 kB / 0.6504 GB, free: 10.22 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001575/0.5092, allocations: 0.8488 MB / 0.6512 GB, free: 9.348 MB / 462.1 MB Notification: Performance of pre-optimization done (n=98): time 3.075e-06/0.5093, allocations: 4 kB / 0.6512 GB, free: 9.344 MB / 462.1 MB Notification: Performance of matching and sorting (n=98): time 0.02698/0.5363, allocations: 7.081 MB / 0.6581 GB, free: 2.203 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.5364, allocations: 115.8 kB / 0.6582 GB, free: 2.066 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.5384, allocations: 1.135 MB / 0.6593 GB, free: 0.918 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002318/0.5386, allocations: 49.7 kB / 0.6594 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003979/0.539, allocations: 0.4969 MB / 0.6599 GB, free: 368 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004006/0.5394, allocations: 362.9 kB / 0.6602 GB, free: 0 / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005707/0.54, allocations: 303.4 kB / 0.6605 GB, free: 15.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.5401, allocations: 301.1 kB / 0.6608 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/0.5417, allocations: 0.7965 MB / 0.6616 GB, free: 14.61 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/0.5435, allocations: 0.9694 MB / 0.6625 GB, free: 13.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0243/0.5678, allocations: 5.919 MB / 0.6683 GB, free: 7.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.5678, allocations: 4 kB / 0.6683 GB, free: 7.586 MB / 478.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01383/0.5817, allocations: 4.504 MB / 0.6727 GB, free: 3.051 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.382e-05/0.5818, allocations: 63.41 kB / 0.6727 GB, free: 2.977 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.5818, allocations: 8 kB / 0.6727 GB, free: 2.969 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006017/0.5878, allocations: 1.658 MB / 0.6744 GB, free: 1.309 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.5896, allocations: 299.5 kB / 0.6747 GB, free: 1.016 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02061/0.6102, allocations: 8.615 MB / 0.6831 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/0.6126, allocations: 210.6 kB / 0.6833 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003738/0.613, allocations: 63.97 kB / 0.6833 GB, free: 7.973 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order6.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 order6.delta:VARIABLE(flow=false start = order6.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 (171): * Single equations (assignments): 168 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009803/0.614, allocations: 302.5 kB / 0.6836 GB, free: 7.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004683/0.6144, allocations: 126.4 kB / 0.6837 GB, free: 7.535 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/0.6271, allocations: 3.928 MB / 0.6876 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.5e-05/0.6272, allocations: 12 kB / 0.6876 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.163e-05/0.6272, allocations: 4 kB / 0.6876 GB, free: 3.559 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.17e-05/0.6272, allocations: 7.984 kB / 0.6876 GB, free: 3.551 MB / 494.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.01545/0.6427, allocations: 5.55 MB / 0.693 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.485e-06/0.6427, allocations: 4.031 kB / 0.693 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006968/0.6434, allocations: 107.8 kB / 0.6931 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005363/0.6488, allocations: 1.591 MB / 0.6947 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.649, allocations: 23.98 kB / 0.6947 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02025/0.6692, allocations: 9.622 MB / 0.7041 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.6693, allocations: 0 / 0.7041 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01452/0.6838, allocations: 4.805 MB / 0.7088 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005814/0.6844, allocations: 239.1 kB / 0.709 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003978/0.6849, allocations: 20 kB / 0.709 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.6864, allocations: 111.9 kB / 0.7091 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007585/0.6871, allocations: 192.7 kB / 0.7093 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.6873, allocations: 36.06 kB / 0.7094 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001479/0.6888, allocations: 0.7673 MB / 0.7101 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6888, allocations: 0 / 0.7101 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002125/0.6909, allocations: 487.6 kB / 0.7106 GB, free: 11.55 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (66): * Single equations (assignments): 63 * 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.0152/0.7062, allocations: 5.405 MB / 0.7159 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007474/0.7137, allocations: 2.62 MB / 0.7184 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.7137, allocations: 0 / 0.7184 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004528/0.7182, allocations: 1.623 MB / 0.72 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.7199, allocations: 119.2 kB / 0.7201 GB, free: 1.656 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04244/0.7624, allocations: 16.75 MB / 0.7365 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.7636, allocations: 1.136 MB / 0.7376 GB, free: 15.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0006567/0.7643, allocations: 120.2 kB / 0.7377 GB, free: 15.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009676/0.7653, allocations: 495.2 kB / 0.7382 GB, free: 14.92 MB / 0.545 GB Notification: Performance of SimCode: time 1.302e-06/0.7653, allocations: 0 / 0.7382 GB, free: 14.92 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4356/1.201, allocations: 35.56 MB / 0.7729 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/16.12, allocations: 5.438 kB / 0.7729 GB, free: 140.1 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)