Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.005854/0.005854, allocations: 102.4 kB / 15.73 MB, free: 6.031 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.329/1.329, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001407/0.001407, allocations: 200.4 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4554/0.4554, allocations: 78.53 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 84.2 kB / 0.5532 GB, free: 1.379 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3087, allocations: 68.17 MB / 0.6198 GB, free: 9.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01115/0.3199, allocations: 13.57 MB / 0.633 GB, free: 12.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008462/0.3284, allocations: 3.468 MB / 0.6364 GB, free: 9.141 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002883/0.3313, allocations: 28 kB / 0.6364 GB, free: 9.113 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.3337, allocations: 0.5576 MB / 0.637 GB, free: 8.547 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005813/0.3396, allocations: 1.423 MB / 0.6384 GB, free: 7.121 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004334/0.344, allocations: 1.507 MB / 0.6398 GB, free: 5.633 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006269/0.3502, allocations: 3.722 MB / 0.6435 GB, free: 1.895 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/0.3527, allocations: 0.8995 MB / 0.6444 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002994/0.3557, allocations: 1.532 MB / 0.6459 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003049/0.3588, allocations: 1.948 MB / 0.6478 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001185/0.36, allocations: 288 kB / 0.648 GB, free: 13.17 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001764/0.3618, allocations: 431.9 kB / 0.6484 GB, free: 12.75 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001297/0.3631, allocations: 0.7662 MB / 0.6492 GB, free: 11.98 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002759/0.3659, allocations: 1.631 MB / 0.6508 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005977/0.3719, allocations: 3.97 MB / 0.6547 GB, free: 6.352 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3719, allocations: 4 kB / 0.6547 GB, free: 6.348 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3719, allocations: 0 / 0.6547 GB, free: 6.348 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000151/0.3721, allocations: 0 / 0.6547 GB, free: 6.348 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02562/0.3977, allocations: 6.571 MB / 0.6611 GB, free: 15.68 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.3978, allocations: 8.031 kB / 0.6611 GB, free: 15.67 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008799/0.3987, allocations: 311.2 kB / 0.6614 GB, free: 15.36 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01649/0.4152, allocations: 2.275 MB / 0.6636 GB, free: 13.08 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004729/0.42, allocations: 1.878 MB / 0.6654 GB, free: 11.13 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009581/0.421, allocations: 0.7328 MB / 0.6662 GB, free: 10.29 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008994/0.4219, allocations: 212 kB / 0.6664 GB, free: 10.08 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008382/0.4303, allocations: 3.035 MB / 0.6693 GB, free: 6.965 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.766e-05/0.4304, allocations: 0 / 0.6693 GB, free: 6.965 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004967/0.4309, allocations: 83.94 kB / 0.6694 GB, free: 6.883 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.281e-05/0.4309, allocations: 48 kB / 0.6694 GB, free: 6.836 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007653/0.4386, allocations: 2.784 MB / 0.6722 GB, free: 4.035 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.02278/0.4614, allocations: 9.797 MB / 0.6817 GB, free: 9.812 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.4737, allocations: 4.176 MB / 0.6858 GB, free: 5.512 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005046/0.4787, allocations: 1.96 MB / 0.6877 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005344/0.4793, allocations: 41.95 kB / 0.6878 GB, free: 3.504 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006314/0.4857, allocations: 2.234 MB / 0.6899 GB, free: 1.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=247): time 9.889e-06/0.4857, allocations: 0 / 0.6899 GB, free: 1.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=247): time 0.1358/0.6215, allocations: 29.46 MB / 0.7187 GB, free: 3.66 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.6217, allocations: 180.2 kB / 0.7189 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00459/0.6263, allocations: 2.285 MB / 0.7211 GB, free: 1.145 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006742/0.627, allocations: 65.7 kB / 0.7212 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.6281, allocations: 1.183 MB / 0.7223 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001476/0.6296, allocations: 0.8664 MB / 0.7232 GB, free: 15 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002225/0.6318, allocations: 0.554 MB / 0.7237 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.632, allocations: 305.1 kB / 0.724 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004869/0.6368, allocations: 1.954 MB / 0.7259 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005221/0.6421, allocations: 2.306 MB / 0.7282 GB, free: 9.781 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05681/0.6989, allocations: 14.01 MB / 0.7419 GB, free: 11.54 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.968e-05/0.699, allocations: 3.938 kB / 0.7419 GB, free: 11.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04364/0.7426, allocations: 12.27 MB / 0.7538 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.7428, allocations: 122.7 kB / 0.754 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.7428, allocations: 8 kB / 0.754 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01941/0.7623, allocations: 5.321 MB / 0.7592 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00301/0.7653, allocations: 0.5656 MB / 0.7597 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3272/1.093, allocations: 23.48 MB / 0.7826 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004024/1.097, allocations: 487.9 kB / 0.7831 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003078/1.097, allocations: 115.7 kB / 0.7832 GB, free: 121.1 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 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 order3_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 (325): * Single equations (assignments): 320 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.0009899/1.098, allocations: 0.5304 MB / 0.7837 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004431/1.098, allocations: 302.9 kB / 0.784 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03871/1.137, allocations: 11.89 MB / 0.7956 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.249e-05/1.137, allocations: 31.55 kB / 0.7957 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.411e-05/1.137, allocations: 15.66 kB / 0.7957 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.241e-05/1.137, allocations: 19.34 kB / 0.7957 GB, free: 118.2 MB / 0.5606 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.04193/1.179, allocations: 15.49 MB / 0.8108 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.168e-05/1.179, allocations: 2.438 kB / 0.8108 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/1.181, allocations: 243.7 kB / 0.8111 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01733/1.198, allocations: 5.279 MB / 0.8162 GB, free: 102.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005399/1.199, allocations: 55.98 kB / 0.8163 GB, free: 102.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05445/1.253, allocations: 24.93 MB / 0.8406 GB, free: 76.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.253, allocations: 1.641 kB / 0.8406 GB, free: 76.96 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04258/1.296, allocations: 14.27 MB / 0.8546 GB, free: 62.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008364/1.297, allocations: 408.3 kB / 0.8549 GB, free: 62.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006105/1.297, allocations: 48 kB / 0.855 GB, free: 62.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/1.3, allocations: 299.6 kB / 0.8553 GB, free: 61.84 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001951/1.302, allocations: 0.5802 MB / 0.8558 GB, free: 61.26 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002087/1.302, allocations: 67.98 kB / 0.8559 GB, free: 61.19 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001879/1.304, allocations: 1.503 MB / 0.8574 GB, free: 59.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/1.304, allocations: 0 / 0.8574 GB, free: 59.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003315/1.308, allocations: 1.177 MB / 0.8585 GB, free: 58.51 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * 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 {(66,22,7.7%)} * 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.0427/1.35, allocations: 14.9 MB / 0.8731 GB, free: 43.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01774/1.368, allocations: 6.699 MB / 0.8796 GB, free: 36.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/1.368, allocations: 8 kB / 0.8796 GB, free: 36.72 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0125/1.381, allocations: 4.402 MB / 0.8839 GB, free: 32.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/1.383, allocations: 273.7 kB / 0.8842 GB, free: 32 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.103/1.486, allocations: 41.26 MB / 0.9245 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001759/1.487, allocations: 1.802 MB / 0.9262 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001249/1.489, allocations: 266.5 kB / 0.9265 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/1.49, allocations: 1.226 MB / 0.9277 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of SimCode: time 7.31e-07/1.49, allocations: 0 / 0.9277 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1542/1.645, allocations: 93.3 MB / 1.019 GB, free: 5.863 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.95/19.6, allocations: 13.88 kB / 1.019 GB, free: 5.855 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)