Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.008984/0.008984, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.391/1.391, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.001889/0.001888, allocations: 196.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5348/0.5348, allocations: 91.91 MB / 431.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 82.03 kB / 0.5723 GB, free: 33.65 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1532, allocations: 71.28 MB / 0.6419 GB, free: 4.066 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.007179/0.1605, allocations: 6.659 MB / 0.6484 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004582/0.1651, allocations: 2.001 MB / 0.6503 GB, free: 11.37 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009508/0.1661, allocations: 8 kB / 0.6503 GB, free: 11.36 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007975/0.1669, allocations: 241.9 kB / 0.6506 GB, free: 11.12 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.1694, allocations: 0.8553 MB / 0.6514 GB, free: 10.27 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.1709, allocations: 0.6445 MB / 0.652 GB, free: 9.629 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001909/0.1729, allocations: 1.647 MB / 0.6536 GB, free: 7.977 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005026/0.1734, allocations: 325.3 kB / 0.6539 GB, free: 7.652 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008556/0.1742, allocations: 0.6769 MB / 0.6546 GB, free: 6.973 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009342/0.1752, allocations: 0.8634 MB / 0.6554 GB, free: 6.105 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001861/0.1754, allocations: 136 kB / 0.6556 GB, free: 5.973 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005121/0.1759, allocations: 259.9 kB / 0.6558 GB, free: 5.719 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002893/0.1762, allocations: 346.5 kB / 0.6562 GB, free: 5.379 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005605/0.1768, allocations: 0.6835 MB / 0.6568 GB, free: 4.691 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001651/0.1784, allocations: 1.706 MB / 0.6585 GB, free: 2.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.974e-06/0.1784, allocations: 4 kB / 0.6585 GB, free: 2.977 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.616e-06/0.1785, allocations: 0 / 0.6585 GB, free: 2.977 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.1785, allocations: 0 / 0.6585 GB, free: 2.977 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008596/0.1871, allocations: 2.758 MB / 0.6612 GB, free: 152 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.1872, allocations: 8.031 kB / 0.6612 GB, free: 144 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.1873, allocations: 126.7 kB / 0.6613 GB, free: 8 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004829/0.1921, allocations: 0.7748 MB / 0.6621 GB, free: 15.23 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001749/0.1939, allocations: 0.9101 MB / 0.663 GB, free: 14.27 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002834/0.1942, allocations: 264.1 kB / 0.6632 GB, free: 13.97 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.1944, allocations: 87.91 kB / 0.6633 GB, free: 13.89 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.1964, allocations: 1.106 MB / 0.6644 GB, free: 12.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1965, allocations: 0 / 0.6644 GB, free: 12.77 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-05/0.1966, allocations: 28 kB / 0.6644 GB, free: 12.74 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.1966, allocations: 20 kB / 0.6644 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.1985, allocations: 0.9955 MB / 0.6654 GB, free: 11.72 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.006609/0.2052, allocations: 3.855 MB / 0.6692 GB, free: 7.684 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006957/0.2121, allocations: 2.392 MB / 0.6715 GB, free: 5.195 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.2136, allocations: 0.6878 MB / 0.6722 GB, free: 4.504 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.2137, allocations: 21 kB / 0.6722 GB, free: 4.484 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001533/0.2153, allocations: 0.8255 MB / 0.673 GB, free: 3.641 MB / 478.1 MB Notification: Performance of pre-optimization done (n=97): time 3.396e-06/0.2153, allocations: 0 / 0.673 GB, free: 3.641 MB / 478.1 MB Notification: Performance of matching and sorting (n=97): time 0.02805/0.2433, allocations: 7.225 MB / 0.68 GB, free: 12.35 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.711e-05/0.2435, allocations: 115.8 kB / 0.6802 GB, free: 12.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001826/0.2453, allocations: 1.123 MB / 0.6813 GB, free: 11.08 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002617/0.2456, allocations: 45.7 kB / 0.6813 GB, free: 11.03 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004141/0.246, allocations: 0.4968 MB / 0.6818 GB, free: 10.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004111/0.2464, allocations: 358.9 kB / 0.6821 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/0.2469, allocations: 295.4 kB / 0.6824 GB, free: 9.875 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.2471, allocations: 305.1 kB / 0.6827 GB, free: 9.574 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.2487, allocations: 0.7809 MB / 0.6835 GB, free: 8.793 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001709/0.2504, allocations: 0.9537 MB / 0.6844 GB, free: 7.801 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02398/0.2744, allocations: 5.794 MB / 0.6901 GB, free: 1.922 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.735e-05/0.2745, allocations: 0 / 0.6901 GB, free: 1.922 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01436/0.2888, allocations: 4.457 MB / 0.6944 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.55e-05/0.289, allocations: 63.34 kB / 0.6945 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.289, allocations: 4 kB / 0.6945 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005928/0.2949, allocations: 1.631 MB / 0.6961 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/0.2966, allocations: 291.6 kB / 0.6963 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02033/0.3169, allocations: 8.592 MB / 0.7047 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.3192, allocations: 206.6 kB / 0.7049 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/0.3195, allocations: 55.97 kB / 0.705 GB, free: 2.43 MB / 0.4981 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 (167): * Single equations (assignments): 164 * 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.0009581/0.3205, allocations: 308.3 kB / 0.7053 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004514/0.321, allocations: 138.4 kB / 0.7054 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/0.3333, allocations: 3.885 MB / 0.7092 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-05/0.3333, allocations: 16 kB / 0.7092 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.889e-05/0.3334, allocations: 12 kB / 0.7092 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.399e-05/0.3334, allocations: 7.969 kB / 0.7092 GB, free: 14.02 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.01557/0.349, allocations: 5.514 MB / 0.7146 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.3491, allocations: 0 / 0.7146 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007629/0.3498, allocations: 99.89 kB / 0.7147 GB, free: 8.301 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005523/0.3554, allocations: 1.584 MB / 0.7163 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000253/0.3557, allocations: 27.98 kB / 0.7163 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02033/0.376, allocations: 9.654 MB / 0.7257 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3761, allocations: 4 kB / 0.7257 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0144/0.3905, allocations: 4.778 MB / 0.7304 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005863/0.3911, allocations: 223.2 kB / 0.7306 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004642/0.3916, allocations: 31.92 kB / 0.7306 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/0.3931, allocations: 111.9 kB / 0.7307 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007715/0.3939, allocations: 196.7 kB / 0.7309 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001695/0.3941, allocations: 28 kB / 0.7309 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001412/0.3955, allocations: 0.7553 MB / 0.7317 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3955, allocations: 0 / 0.7317 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001949/0.3974, allocations: 487.5 kB / 0.7322 GB, free: 6.086 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01472/0.4122, allocations: 5.373 MB / 0.7374 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007248/0.4195, allocations: 2.593 MB / 0.7399 GB, free: 14.03 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.4195, allocations: 0 / 0.7399 GB, free: 14.03 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004245/0.4238, allocations: 1.591 MB / 0.7415 GB, free: 12.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.4254, allocations: 126.6 kB / 0.7416 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04146/0.4668, allocations: 16.49 MB / 0.7577 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.4679, allocations: 1.132 MB / 0.7588 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007334/0.4687, allocations: 120.1 kB / 0.7589 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009107/0.4696, allocations: 483.1 kB / 0.7594 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of SimCode: time 2.164e-06/0.4696, allocations: 0 / 0.7594 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3942/0.8638, allocations: 35.13 MB / 0.7937 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.43, allocations: 10.03 kB / 0.7937 GB, free: 109.3 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)