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.007235/0.007235, allocations: 107 kB / 15.74 MB, free: 5.996 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.414/1.414, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.00173/0.00173, allocations: 196.4 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.562/0.562, allocations: 91.9 MB / 431.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 82.86 kB / 0.5723 GB, free: 34.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1322, allocations: 71.27 MB / 0.6419 GB, free: 4.199 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.007267/0.1395, allocations: 6.531 MB / 0.6482 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004511/0.1441, allocations: 1.958 MB / 0.6501 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.1454, allocations: 12 kB / 0.6502 GB, free: 11.66 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.1466, allocations: 234 kB / 0.6504 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003128/0.1498, allocations: 0.8514 MB / 0.6512 GB, free: 10.58 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001603/0.1514, allocations: 0.621 MB / 0.6518 GB, free: 9.965 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002273/0.1537, allocations: 1.581 MB / 0.6534 GB, free: 8.379 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005605/0.1543, allocations: 333.2 kB / 0.6537 GB, free: 8.047 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.1553, allocations: 0.6535 MB / 0.6543 GB, free: 7.391 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.1564, allocations: 0.8284 MB / 0.6551 GB, free: 6.559 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002993/0.1567, allocations: 124 kB / 0.6552 GB, free: 6.438 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005923/0.1573, allocations: 259.8 kB / 0.6555 GB, free: 6.184 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003055/0.1576, allocations: 330.6 kB / 0.6558 GB, free: 5.859 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006996/0.1584, allocations: 0.668 MB / 0.6565 GB, free: 5.188 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001965/0.1603, allocations: 1.667 MB / 0.6581 GB, free: 3.516 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1604, allocations: 0 / 0.6581 GB, free: 3.516 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1604, allocations: 0 / 0.6581 GB, free: 3.516 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.37e-05/0.1604, allocations: 0 / 0.6581 GB, free: 3.516 MB / 462.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.008847/0.1693, allocations: 2.68 MB / 0.6607 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.1693, allocations: 12.03 kB / 0.6607 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001911/0.1695, allocations: 122.6 kB / 0.6608 GB, free: 0.625 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005157/0.1747, allocations: 0.7787 MB / 0.6616 GB, free: 15.84 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.1766, allocations: 0.8863 MB / 0.6625 GB, free: 14.9 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.1769, allocations: 260.2 kB / 0.6627 GB, free: 14.61 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/0.1772, allocations: 83.98 kB / 0.6628 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.1793, allocations: 1.086 MB / 0.6639 GB, free: 13.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.1793, allocations: 0 / 0.6639 GB, free: 13.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.313e-05/0.1794, allocations: 31.98 kB / 0.6639 GB, free: 13.4 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.1794, allocations: 16 kB / 0.6639 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002029/0.1815, allocations: 0.9877 MB / 0.6649 GB, free: 12.39 MB / 478.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.00689/0.1884, allocations: 3.808 MB / 0.6686 GB, free: 8.402 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007029/0.1955, allocations: 2.361 MB / 0.6709 GB, free: 5.945 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.197, allocations: 0.6723 MB / 0.6715 GB, free: 5.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001623/0.1972, allocations: 16.98 kB / 0.6716 GB, free: 5.254 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001809/0.199, allocations: 0.8177 MB / 0.6724 GB, free: 4.418 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 4.519e-06/0.1991, allocations: 0 / 0.6724 GB, free: 4.418 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.0283/0.2274, allocations: 7.19 MB / 0.6794 GB, free: 13.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.183e-05/0.2275, allocations: 123.7 kB / 0.6795 GB, free: 13.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/0.2295, allocations: 1.087 MB / 0.6806 GB, free: 11.92 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003259/0.2299, allocations: 45.7 kB / 0.6806 GB, free: 11.87 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004835/0.2304, allocations: 496.8 kB / 0.6811 GB, free: 11.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005851/0.231, allocations: 347.1 kB / 0.6814 GB, free: 11.03 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008583/0.2319, allocations: 283.4 kB / 0.6817 GB, free: 10.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.232, allocations: 317 kB / 0.682 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001789/0.2338, allocations: 0.7496 MB / 0.6827 GB, free: 9.688 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001903/0.2357, allocations: 0.9226 MB / 0.6836 GB, free: 8.727 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02366/0.2594, allocations: 5.56 MB / 0.689 GB, free: 3.082 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/0.2595, allocations: 0 / 0.689 GB, free: 3.082 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01442/0.2739, allocations: 4.364 MB / 0.6933 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.656e-05/0.274, allocations: 59.41 kB / 0.6934 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.2741, allocations: 0 / 0.6934 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005916/0.28, allocations: 1.6 MB / 0.6949 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/0.2816, allocations: 275.6 kB / 0.6952 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02115/0.3027, allocations: 8.498 MB / 0.7035 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/0.3049, allocations: 202.6 kB / 0.7037 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003388/0.3052, allocations: 59.97 kB / 0.7037 GB, free: 3.836 MB / 0.4981 GB 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.0009623/0.3062, allocations: 300.2 kB / 0.704 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004298/0.3066, allocations: 118.5 kB / 0.7041 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/0.3194, allocations: 3.869 MB / 0.7079 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.077e-05/0.3195, allocations: 12 kB / 0.7079 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-05/0.3195, allocations: 8 kB / 0.7079 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-05/0.3196, allocations: 7.984 kB / 0.7079 GB, free: 15.48 MB / 0.5137 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.01613/0.3357, allocations: 5.463 MB / 0.7133 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.701e-05/0.3358, allocations: 0 / 0.7133 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006977/0.3365, allocations: 95.91 kB / 0.7134 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005633/0.3421, allocations: 1.603 MB / 0.7149 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002733/0.3425, allocations: 23.98 kB / 0.715 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02106/0.3635, allocations: 9.63 MB / 0.7244 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/0.3636, allocations: 8 kB / 0.7244 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0145/0.3781, allocations: 4.723 MB / 0.729 GB, free: 9.492 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005178/0.3787, allocations: 227.3 kB / 0.7292 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004423/0.3791, allocations: 19.94 kB / 0.7292 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.3806, allocations: 107.9 kB / 0.7293 GB, free: 9.125 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007817/0.3814, allocations: 192.7 kB / 0.7295 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002039/0.3816, allocations: 32.08 kB / 0.7295 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001375/0.383, allocations: 0.7314 MB / 0.7302 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/0.383, allocations: 0 / 0.7302 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002076/0.3851, allocations: 475.5 kB / 0.7307 GB, free: 7.699 MB / 0.5294 GB 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.01519/0.4003, allocations: 5.324 MB / 0.7359 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007006/0.4074, allocations: 2.52 MB / 0.7384 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/0.4074, allocations: 0 / 0.7384 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004722/0.4122, allocations: 1.604 MB / 0.7399 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.4141, allocations: 111.8 kB / 0.74 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04219/0.4563, allocations: 16 MB / 0.7557 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008441/0.4572, allocations: 1.12 MB / 0.7568 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006222/0.4578, allocations: 120 kB / 0.7569 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007697/0.4586, allocations: 475.3 kB / 0.7573 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of SimCode: time 1.022e-06/0.4586, allocations: 0 / 0.7573 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4018/0.8605, allocations: 34.27 MB / 0.7908 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/15.77, allocations: 5.953 kB / 0.7908 GB, free: 111.9 MB / 0.5606 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)