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.00607/0.00607, allocations: 102.5 kB / 15.74 MB, free: 6.039 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.47/1.47, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001801/0.001801, allocations: 184.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5704/0.5704, allocations: 92.62 MB / 432.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002231/0.002231, allocations: 80.31 kB / 0.5732 GB, free: 33.49 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1614, allocations: 71.41 MB / 0.643 GB, free: 3.102 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.008674/0.1701, allocations: 6.516 MB / 0.6493 GB, free: 12.55 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004285/0.1744, allocations: 1.951 MB / 0.6512 GB, free: 10.59 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005821/0.175, allocations: 15.94 kB / 0.6512 GB, free: 10.58 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007469/0.1758, allocations: 234 kB / 0.6515 GB, free: 10.35 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.1778, allocations: 0.8081 MB / 0.6522 GB, free: 9.539 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.1792, allocations: 0.6286 MB / 0.6529 GB, free: 8.914 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.181, allocations: 1.577 MB / 0.6544 GB, free: 7.332 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004917/0.1815, allocations: 326.4 kB / 0.6547 GB, free: 7.008 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008532/0.1824, allocations: 0.6496 MB / 0.6553 GB, free: 6.355 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.1834, allocations: 0.8323 MB / 0.6562 GB, free: 5.52 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001838/0.1836, allocations: 120 kB / 0.6563 GB, free: 5.402 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005054/0.1841, allocations: 259.9 kB / 0.6565 GB, free: 5.148 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003448/0.1845, allocations: 326.6 kB / 0.6568 GB, free: 4.828 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006795/0.1851, allocations: 0.6719 MB / 0.6575 GB, free: 4.152 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001942/0.1871, allocations: 1.676 MB / 0.6591 GB, free: 2.469 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1871, allocations: 4 kB / 0.6591 GB, free: 2.465 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1871, allocations: 0 / 0.6591 GB, free: 2.465 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.1871, allocations: 0 / 0.6591 GB, free: 2.465 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.0088/0.196, allocations: 2.726 MB / 0.6618 GB, free: 15.66 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.196, allocations: 12.03 kB / 0.6618 GB, free: 15.65 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001784/0.1962, allocations: 134.6 kB / 0.6619 GB, free: 15.51 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004968/0.2012, allocations: 0.7757 MB / 0.6627 GB, free: 14.73 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/0.2028, allocations: 0.8951 MB / 0.6636 GB, free: 13.79 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.2031, allocations: 264.2 kB / 0.6638 GB, free: 13.49 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.2033, allocations: 84 kB / 0.6639 GB, free: 13.41 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.2056, allocations: 1.075 MB / 0.6649 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.2056, allocations: 4 kB / 0.665 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.547e-05/0.2057, allocations: 31.98 kB / 0.665 GB, free: 12.29 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.2057, allocations: 20 kB / 0.665 GB, free: 12.27 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002194/0.2079, allocations: 0.9838 MB / 0.666 GB, free: 11.28 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.006893/0.2148, allocations: 3.809 MB / 0.6697 GB, free: 7.289 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007917/0.2227, allocations: 2.361 MB / 0.672 GB, free: 4.828 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.2243, allocations: 0.6762 MB / 0.6726 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.2244, allocations: 16.98 kB / 0.6727 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001779/0.2262, allocations: 0.8192 MB / 0.6735 GB, free: 3.297 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 2.996e-06/0.2262, allocations: 0 / 0.6735 GB, free: 3.297 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.04358/0.2698, allocations: 7.195 MB / 0.6805 GB, free: 12.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.27, allocations: 119.8 kB / 0.6806 GB, free: 11.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002674/0.2726, allocations: 1.091 MB / 0.6817 GB, free: 10.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002486/0.2729, allocations: 49.64 kB / 0.6817 GB, free: 10.74 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006056/0.2735, allocations: 0.4936 MB / 0.6822 GB, free: 10.24 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005687/0.2741, allocations: 361 kB / 0.6825 GB, free: 9.883 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007787/0.2749, allocations: 279.5 kB / 0.6828 GB, free: 9.605 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.2751, allocations: 305.1 kB / 0.6831 GB, free: 9.305 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00267/0.2778, allocations: 0.7574 MB / 0.6838 GB, free: 8.547 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00273/0.2805, allocations: 0.9226 MB / 0.6847 GB, free: 7.586 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03064/0.3112, allocations: 5.56 MB / 0.6902 GB, free: 1.941 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.3112, allocations: 0 / 0.6902 GB, free: 1.941 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01446/0.3257, allocations: 4.368 MB / 0.6944 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.192e-05/0.3258, allocations: 64.66 kB / 0.6945 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.3258, allocations: 7.938 kB / 0.6945 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006052/0.3319, allocations: 1.588 MB / 0.6961 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.3334, allocations: 279.6 kB / 0.6963 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02137/0.3547, allocations: 8.519 MB / 0.7046 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/0.3567, allocations: 207.1 kB / 0.7048 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.3569, allocations: 55.97 kB / 0.7049 GB, free: 2.664 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.0006599/0.3575, allocations: 305 kB / 0.7052 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002274/0.3578, allocations: 131.2 kB / 0.7053 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01363/0.3714, allocations: 3.869 MB / 0.7091 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.3715, allocations: 8 kB / 0.7091 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.3715, allocations: 8 kB / 0.7091 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-05/0.3715, allocations: 3.984 kB / 0.7091 GB, free: 14.31 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.01558/0.3871, allocations: 5.467 MB / 0.7144 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.3871, allocations: 0 / 0.7144 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005467/0.3877, allocations: 95.89 kB / 0.7145 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005833/0.3935, allocations: 1.607 MB / 0.7161 GB, free: 7.027 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.3937, allocations: 23.98 kB / 0.7161 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0221/0.4158, allocations: 9.643 MB / 0.7255 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4158, allocations: 0 / 0.7255 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01556/0.4314, allocations: 4.739 MB / 0.7302 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005747/0.432, allocations: 228 kB / 0.7304 GB, free: 8.055 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/0.4322, allocations: 23.94 kB / 0.7304 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.4333, allocations: 107.9 kB / 0.7305 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00067/0.434, allocations: 196.7 kB / 0.7307 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.21e-05/0.4341, allocations: 27.98 kB / 0.7307 GB, free: 7.703 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001179/0.4353, allocations: 0.7354 MB / 0.7315 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.064e-06/0.4353, allocations: 96 / 0.7315 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001411/0.4367, allocations: 475.6 kB / 0.7319 GB, free: 6.496 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.01586/0.4526, allocations: 5.32 MB / 0.7371 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007195/0.4599, allocations: 2.529 MB / 0.7396 GB, free: 14.56 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.4599, allocations: 4.062 kB / 0.7396 GB, free: 14.55 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004693/0.4646, allocations: 1.603 MB / 0.7411 GB, free: 12.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.4658, allocations: 112.8 kB / 0.7412 GB, free: 12.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04147/0.5073, allocations: 16.05 MB / 0.7569 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008647/0.5082, allocations: 1.116 MB / 0.758 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005907/0.5088, allocations: 120 kB / 0.7581 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007032/0.5095, allocations: 479.3 kB / 0.7586 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of SimCode: time 7.02e-07/0.5095, allocations: 0 / 0.7586 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4072/0.9167, allocations: 34.27 MB / 0.792 GB, free: 111 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.53/15.44, allocations: 14.8 kB / 0.7921 GB, free: 111 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)