Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.001772/0.001772, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.581/1.581, allocations: 222.9 MB / 238.9 MB, free: 4.754 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.001719/0.001719, allocations: 192.4 kB / 289.2 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5591/0.5591, allocations: 91.9 MB / 431.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 75.89 kB / 0.5013 GB, free: 8.055 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.4345, allocations: 71.26 MB / 0.5709 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.006907/0.4415, allocations: 7.024 MB / 0.5778 GB, free: 32.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004553/0.446, allocations: 2.061 MB / 0.5798 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.4474, allocations: 12.12 kB / 0.5798 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008509/0.4483, allocations: 192.1 kB / 0.58 GB, free: 30.8 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002197/0.4505, allocations: 0.7435 MB / 0.5807 GB, free: 30.33 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.4518, allocations: 0.5981 MB / 0.5813 GB, free: 30.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.4536, allocations: 1.575 MB / 0.5828 GB, free: 29.27 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004604/0.454, allocations: 301 kB / 0.5831 GB, free: 29.13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009156/0.455, allocations: 0.614 MB / 0.5837 GB, free: 28.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007983/0.4558, allocations: 0.828 MB / 0.5845 GB, free: 28.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.456, allocations: 76.62 kB / 0.5846 GB, free: 28.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005509/0.4565, allocations: 212.1 kB / 0.5848 GB, free: 28.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002689/0.4568, allocations: 290.1 kB / 0.5851 GB, free: 28.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005867/0.4574, allocations: 0.6398 MB / 0.5857 GB, free: 27.86 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.4589, allocations: 1.664 MB / 0.5873 GB, free: 27.13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.459, allocations: 5.312 kB / 0.5873 GB, free: 27.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.459, allocations: 3.938 kB / 0.5873 GB, free: 27.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.735e-05/0.459, allocations: 0 / 0.5873 GB, free: 27.12 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.009962/0.469, allocations: 2.78 MB / 0.59 GB, free: 25.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.469, allocations: 15.86 kB / 0.5901 GB, free: 25.83 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001782/0.4692, allocations: 125 kB / 0.5902 GB, free: 25.74 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005114/0.4743, allocations: 0.7794 MB / 0.5909 GB, free: 25.58 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.4763, allocations: 0.9193 MB / 0.5918 GB, free: 24.96 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002783/0.4766, allocations: 261.9 kB / 0.5921 GB, free: 24.74 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001748/0.4768, allocations: 91.81 kB / 0.5922 GB, free: 24.71 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002276/0.4791, allocations: 1.11 MB / 0.5933 GB, free: 24.28 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.4791, allocations: 3.328 kB / 0.5933 GB, free: 24.28 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.4793, allocations: 30.59 kB / 0.5933 GB, free: 24.26 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.4793, allocations: 17.97 kB / 0.5933 GB, free: 24.26 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.4815, allocations: 1.002 MB / 0.5943 GB, free: 23.92 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.008005/0.4895, allocations: 3.919 MB / 0.5981 GB, free: 21.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007999/0.4975, allocations: 2.41 MB / 0.6005 GB, free: 20.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001896/0.4995, allocations: 0.6991 MB / 0.6011 GB, free: 20.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.4996, allocations: 13.89 kB / 0.6012 GB, free: 20.54 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001995/0.5016, allocations: 0.844 MB / 0.602 GB, free: 20.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=98): time 4.038e-06/0.5016, allocations: 0 / 0.602 GB, free: 20.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.03186/0.5335, allocations: 7.082 MB / 0.6089 GB, free: 18.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.5336, allocations: 126.3 kB / 0.609 GB, free: 18.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002325/0.536, allocations: 1.13 MB / 0.6101 GB, free: 18.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003556/0.5364, allocations: 46.86 kB / 0.6102 GB, free: 18.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004547/0.5368, allocations: 0.496 MB / 0.6107 GB, free: 17.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004491/0.5373, allocations: 367.5 kB / 0.611 GB, free: 17.48 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006459/0.5379, allocations: 296.5 kB / 0.6113 GB, free: 17.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.543e-05/0.538, allocations: 301.1 kB / 0.6116 GB, free: 17.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001892/0.5399, allocations: 0.806 MB / 0.6124 GB, free: 16.74 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002043/0.542, allocations: 0.9653 MB / 0.6133 GB, free: 16.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0266/0.5686, allocations: 5.933 MB / 0.6191 GB, free: 12.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/0.5686, allocations: 0 / 0.6191 GB, free: 12.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.0133/0.5819, allocations: 4.512 MB / 0.6235 GB, free: 8.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.039e-05/0.5821, allocations: 59.41 kB / 0.6236 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.5821, allocations: 4 kB / 0.6236 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00596/0.5881, allocations: 1.658 MB / 0.6252 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.5899, allocations: 299.6 kB / 0.6255 GB, free: 6.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/0.6083, allocations: 7.944 MB / 0.6332 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003244/0.6117, allocations: 218.5 kB / 0.6334 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003686/0.6121, allocations: 55.98 kB / 0.6335 GB, free: 13.95 MB / 446.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.001136/0.6132, allocations: 312.1 kB / 0.6338 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004827/0.6137, allocations: 126.4 kB / 0.6339 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01435/0.6281, allocations: 3.92 MB / 0.6377 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.442e-05/0.6282, allocations: 8 kB / 0.6377 GB, free: 9.543 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.18e-05/0.6282, allocations: 8 kB / 0.6378 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.587e-05/0.6282, allocations: 3.984 kB / 0.6378 GB, free: 9.531 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.0168/0.6451, allocations: 5.555 MB / 0.6432 GB, free: 3.855 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/0.6451, allocations: 4 kB / 0.6432 GB, free: 3.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009512/0.6461, allocations: 103.8 kB / 0.6433 GB, free: 3.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005833/0.6519, allocations: 1.595 MB / 0.6448 GB, free: 2.148 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003164/0.6523, allocations: 24 kB / 0.6449 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01999/0.6723, allocations: 8.789 MB / 0.6534 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.6724, allocations: 0 / 0.6534 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01577/0.6882, allocations: 4.803 MB / 0.6581 GB, free: 4.219 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007816/0.689, allocations: 231.2 kB / 0.6584 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/0.6893, allocations: 16 kB / 0.6584 GB, free: 3.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.6907, allocations: 115.9 kB / 0.6585 GB, free: 3.844 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007078/0.6914, allocations: 196.6 kB / 0.6587 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.628e-05/0.6915, allocations: 28 kB / 0.6587 GB, free: 3.625 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001265/0.6927, allocations: 0.7634 MB / 0.6594 GB, free: 2.855 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6928, allocations: 0 / 0.6594 GB, free: 2.855 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00176/0.6945, allocations: 495.5 kB / 0.6599 GB, free: 2.371 MB / 462.1 MB 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.01534/0.7099, allocations: 5.394 MB / 0.6652 GB, free: 12.93 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007082/0.717, allocations: 2.616 MB / 0.6677 GB, free: 10.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.248e-06/0.7171, allocations: 4 kB / 0.6677 GB, free: 10.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004546/0.7216, allocations: 1.616 MB / 0.6693 GB, free: 8.621 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.7231, allocations: 116.6 kB / 0.6694 GB, free: 8.504 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04496/0.7681, allocations: 17.98 MB / 0.687 GB, free: 6.074 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007484/0.7689, allocations: 1.132 MB / 0.6881 GB, free: 4.91 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007619/0.7697, allocations: 120.3 kB / 0.6882 GB, free: 4.789 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/0.7704, allocations: 487.3 kB / 0.6887 GB, free: 4.312 MB / 494.1 MB Notification: Performance of SimCode: time 1.533e-06/0.7704, allocations: 0 / 0.6887 GB, free: 4.312 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2258/0.9961, allocations: 32.97 MB / 0.7209 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003201/0.9965, allocations: 250.8 kB / 0.7211 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.781/3.778, allocations: 0 / 0.7211 GB, free: 3.301 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)