Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_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.001187/0.001186, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 239.3 MB, free: 4.605 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.001385/0.001385, allocations: 192.5 kB / 289.5 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5493/0.5493, allocations: 91.9 MB / 431.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 79.88 kB / 0.502 GB, free: 7.648 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.3916, allocations: 71.26 MB / 0.5716 GB, free: 36.69 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01088/0.4026, allocations: 13.71 MB / 0.585 GB, free: 27.57 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007556/0.4102, allocations: 3.488 MB / 0.5884 GB, free: 25.06 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002625/0.4128, allocations: 28.16 kB / 0.5884 GB, free: 25.06 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.4142, allocations: 0.558 MB / 0.5889 GB, free: 24.76 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004368/0.4186, allocations: 1.42 MB / 0.5903 GB, free: 23.79 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003195/0.4218, allocations: 1.509 MB / 0.5918 GB, free: 23.04 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004991/0.4268, allocations: 3.701 MB / 0.5954 GB, free: 21.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.4282, allocations: 0.8984 MB / 0.5963 GB, free: 20.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00269/0.4309, allocations: 1.524 MB / 0.5978 GB, free: 19.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002381/0.4333, allocations: 1.947 MB / 0.5997 GB, free: 18.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006376/0.434, allocations: 283.3 kB / 0.6 GB, free: 18.98 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.4351, allocations: 438.4 kB / 0.6004 GB, free: 18.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005231/0.4356, allocations: 0.7555 MB / 0.6011 GB, free: 18.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001398/0.437, allocations: 1.631 MB / 0.6027 GB, free: 17.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004646/0.4417, allocations: 3.924 MB / 0.6065 GB, free: 15.49 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.4417, allocations: 0.6562 kB / 0.6065 GB, free: 15.49 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4417, allocations: 0 / 0.6065 GB, free: 15.49 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001356/0.4418, allocations: 1.375 kB / 0.6065 GB, free: 15.49 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02803/0.4699, allocations: 6.584 MB / 0.613 GB, free: 12.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.47, allocations: 9.062 kB / 0.613 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000675/0.4706, allocations: 303.4 kB / 0.6133 GB, free: 12.67 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01594/0.4866, allocations: 2.276 MB / 0.6155 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005196/0.4918, allocations: 1.867 MB / 0.6173 GB, free: 11.07 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008165/0.4927, allocations: 0.7237 MB / 0.618 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/0.4937, allocations: 216.1 kB / 0.6182 GB, free: 10.35 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00759/0.5013, allocations: 3.037 MB / 0.6212 GB, free: 9.195 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/0.5014, allocations: 0 / 0.6212 GB, free: 9.195 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002711/0.5017, allocations: 86.59 kB / 0.6213 GB, free: 9.129 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.723e-05/0.5017, allocations: 48.75 kB / 0.6213 GB, free: 9.129 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006896/0.5086, allocations: 2.79 MB / 0.624 GB, free: 7.996 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.02078/0.5295, allocations: 9.923 MB / 0.6337 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.5406, allocations: 4.176 MB / 0.6378 GB, free: 9.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004641/0.5453, allocations: 1.968 MB / 0.6397 GB, free: 7.934 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003518/0.5457, allocations: 45.89 kB / 0.6398 GB, free: 7.891 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005464/0.5512, allocations: 2.232 MB / 0.642 GB, free: 5.637 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 8.706e-06/0.5512, allocations: 0 / 0.642 GB, free: 5.637 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.1226/0.6738, allocations: 28.18 MB / 0.6695 GB, free: 9.328 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/0.674, allocations: 184.2 kB / 0.6696 GB, free: 9.109 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005733/0.6798, allocations: 2.273 MB / 0.6719 GB, free: 6.816 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001027/0.6809, allocations: 69.7 kB / 0.6719 GB, free: 6.742 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/0.6821, allocations: 1.164 MB / 0.6731 GB, free: 5.566 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001917/0.684, allocations: 0.8743 MB / 0.6739 GB, free: 4.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002581/0.6866, allocations: 0.5579 MB / 0.6745 GB, free: 4.113 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.6867, allocations: 313.1 kB / 0.6748 GB, free: 3.805 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00484/0.6916, allocations: 1.951 MB / 0.6767 GB, free: 1.852 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005007/0.6966, allocations: 2.314 MB / 0.6789 GB, free: 15.44 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.055/0.7516, allocations: 14.08 MB / 0.6927 GB, free: 1.133 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/0.7517, allocations: 7.938 kB / 0.6927 GB, free: 1.125 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04402/0.7957, allocations: 12.5 MB / 0.7049 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.7959, allocations: 114.8 kB / 0.705 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.7959, allocations: 4 kB / 0.705 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01792/0.8138, allocations: 5.3 MB / 0.7102 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003088/0.817, allocations: 0.5656 MB / 0.7107 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06277/0.8798, allocations: 23.2 MB / 0.7334 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005154/0.885, allocations: 489.1 kB / 0.7339 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009458/0.8859, allocations: 120 kB / 0.734 GB, free: 6.574 MB / 0.5294 GB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002352/0.8883, allocations: 0.5288 MB / 0.7345 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/0.8896, allocations: 300.3 kB / 0.7348 GB, free: 5.73 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04175/0.9314, allocations: 11.91 MB / 0.7464 GB, free: 9.773 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.252e-05/0.9315, allocations: 27.98 kB / 0.7464 GB, free: 9.746 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.45e-05/0.9316, allocations: 23.98 kB / 0.7464 GB, free: 9.723 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.63e-05/0.9317, allocations: 11.95 kB / 0.7465 GB, free: 9.711 MB / 0.545 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.05062/0.9823, allocations: 15.51 MB / 0.7616 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.255e-05/0.9824, allocations: 4 kB / 0.7616 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/0.9843, allocations: 243.6 kB / 0.7618 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01912/1.003, allocations: 5.251 MB / 0.767 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009725/1.004, allocations: 51.98 kB / 0.767 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.343/1.348, allocations: 24.96 MB / 0.7914 GB, free: 158.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/1.348, allocations: 4.5 kB / 0.7914 GB, free: 158.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04663/1.394, allocations: 14.27 MB / 0.8053 GB, free: 155 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/1.395, allocations: 407.8 kB / 0.8057 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007039/1.396, allocations: 43.78 kB / 0.8058 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002975/1.399, allocations: 302.5 kB / 0.806 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002412/1.402, allocations: 0.5864 MB / 0.8066 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002357/1.402, allocations: 65.55 kB / 0.8067 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002386/1.404, allocations: 1.502 MB / 0.8081 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.232e-06/1.404, allocations: 0 / 0.8081 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00422/1.408, allocations: 1.181 MB / 0.8093 GB, free: 153.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(65,23,7.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04162/1.45, allocations: 14.9 MB / 0.8239 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01921/1.469, allocations: 6.723 MB / 0.8304 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.469, allocations: 1.75 kB / 0.8304 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0128/1.482, allocations: 4.399 MB / 0.8347 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002857/1.485, allocations: 275.1 kB / 0.835 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1/1.585, allocations: 46.03 MB / 0.8799 GB, free: 87.12 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/1.586, allocations: 1.81 MB / 0.8817 GB, free: 85.28 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001334/1.588, allocations: 266.5 kB / 0.8819 GB, free: 85.02 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001312/1.589, allocations: 1.233 MB / 0.8832 GB, free: 83.79 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/1.589, allocations: 0 / 0.8832 GB, free: 83.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1179/1.707, allocations: 86.72 MB / 0.9678 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/16.4, allocations: 6.297 kB / 0.9678 GB, free: 13.29 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)