Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.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.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_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.001367/0.001367, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.319/1.319, allocations: 222.9 MB / 238.8 MB, free: 4.727 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.001526/0.001526, allocations: 192.5 kB / 289.1 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4571/0.457, allocations: 78.53 MB / 417.8 MB, free: 3.324 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.001441, allocations: 79.88 kB / 496.9 MB, free: 6.668 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1406, allocations: 68.17 MB / 0.5518 GB, free: 2.445 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.3058/0.4464, allocations: 14.46 MB / 0.5659 GB, free: 30.66 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00919/0.4557, allocations: 3.609 MB / 0.5694 GB, free: 29.63 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004311/0.46, allocations: 31.59 kB / 0.5695 GB, free: 29.63 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.4621, allocations: 436.1 kB / 0.5699 GB, free: 29.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005901/0.4681, allocations: 1.23 MB / 0.5711 GB, free: 28.9 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003836/0.4719, allocations: 1.412 MB / 0.5725 GB, free: 28.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005677/0.4776, allocations: 3.523 MB / 0.5759 GB, free: 27.88 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001972/0.4796, allocations: 0.7968 MB / 0.5767 GB, free: 27.67 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003239/0.4829, allocations: 1.408 MB / 0.5781 GB, free: 27.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003101/0.486, allocations: 1.855 MB / 0.5799 GB, free: 26.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.4874, allocations: 173.2 kB / 0.58 GB, free: 26.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.4894, allocations: 311.8 kB / 0.5803 GB, free: 26.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001341/0.4908, allocations: 0.6545 MB / 0.581 GB, free: 26.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0033/0.4941, allocations: 1.526 MB / 0.5825 GB, free: 25.86 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005046/0.4992, allocations: 3.809 MB / 0.5862 GB, free: 24.12 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4992, allocations: 0 / 0.5862 GB, free: 24.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4992, allocations: 0 / 0.5862 GB, free: 24.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002091/0.4994, allocations: 0 / 0.5862 GB, free: 24.12 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.02781/0.5272, allocations: 6.574 MB / 0.5926 GB, free: 21.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.518e-05/0.5273, allocations: 9.156 kB / 0.5926 GB, free: 21.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001311/0.5286, allocations: 303.6 kB / 0.5929 GB, free: 21.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01565/0.5443, allocations: 2.277 MB / 0.5951 GB, free: 20.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005983/0.5503, allocations: 1.873 MB / 0.5969 GB, free: 19.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009623/0.5513, allocations: 0.7259 MB / 0.5977 GB, free: 19.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00129/0.5526, allocations: 215.6 kB / 0.5979 GB, free: 18.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.5631, allocations: 3.03 MB / 0.6008 GB, free: 17.83 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-05/0.5633, allocations: 0 / 0.6008 GB, free: 17.83 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009136/0.5642, allocations: 94.47 kB / 0.6009 GB, free: 17.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-05/0.5643, allocations: 51.19 kB / 0.601 GB, free: 17.76 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008916/0.5732, allocations: 2.783 MB / 0.6037 GB, free: 16.82 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.02598/0.5992, allocations: 9.891 MB / 0.6133 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/0.611, allocations: 4.195 MB / 0.6174 GB, free: 9.402 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004568/0.6156, allocations: 1.964 MB / 0.6194 GB, free: 8.395 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005906/0.6162, allocations: 40.8 kB / 0.6194 GB, free: 8.383 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005742/0.622, allocations: 2.236 MB / 0.6216 GB, free: 7.094 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 1.44e-05/0.622, allocations: 0 / 0.6216 GB, free: 7.094 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1163/0.7384, allocations: 27.3 MB / 0.6482 GB, free: 11.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/0.7386, allocations: 184.3 kB / 0.6484 GB, free: 11.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005237/0.7438, allocations: 2.269 MB / 0.6506 GB, free: 9.406 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009203/0.7448, allocations: 69.7 kB / 0.6507 GB, free: 9.332 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.7461, allocations: 1.164 MB / 0.6518 GB, free: 8.156 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001832/0.7479, allocations: 0.8665 MB / 0.6527 GB, free: 7.277 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003072/0.751, allocations: 0.5657 MB / 0.6532 GB, free: 6.703 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.7512, allocations: 301.1 kB / 0.6535 GB, free: 6.406 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005017/0.7562, allocations: 1.958 MB / 0.6554 GB, free: 4.445 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005268/0.7615, allocations: 2.321 MB / 0.6577 GB, free: 2.035 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05553/0.817, allocations: 14.03 MB / 0.6714 GB, free: 3.785 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.399e-05/0.8171, allocations: 10.34 kB / 0.6714 GB, free: 3.777 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04484/0.862, allocations: 12.5 MB / 0.6836 GB, free: 7.207 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.8621, allocations: 118.8 kB / 0.6837 GB, free: 7.066 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.117e-05/0.8622, allocations: 4 kB / 0.6837 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01791/0.8801, allocations: 5.296 MB / 0.6889 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003111/0.8832, allocations: 0.5617 MB / 0.6895 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06052/0.9438, allocations: 21.32 MB / 0.7103 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005334/0.9492, allocations: 489.1 kB / 0.7107 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/0.9502, allocations: 120 kB / 0.7109 GB, free: 11.12 MB / 0.5137 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.002888/0.9532, allocations: 0.5349 MB / 0.7114 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001696/0.9549, allocations: 304.2 kB / 0.7117 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04251/0.9974, allocations: 11.9 MB / 0.7233 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.051e-05/0.9975, allocations: 28 kB / 0.7233 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.249e-05/0.9976, allocations: 16 kB / 0.7233 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001002/0.9977, allocations: 16.7 kB / 0.7234 GB, free: 14.27 MB / 0.5294 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.0513/1.049, allocations: 15.51 MB / 0.7385 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.947e-05/1.049, allocations: 0 / 0.7385 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/1.051, allocations: 247.7 kB / 0.7387 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01821/1.069, allocations: 5.251 MB / 0.7439 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009277/1.07, allocations: 56.48 kB / 0.7439 GB, free: 9.031 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06176/1.132, allocations: 22.69 MB / 0.7661 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.132, allocations: 1.25 kB / 0.7661 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.356/1.488, allocations: 14.27 MB / 0.78 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/1.489, allocations: 406.3 kB / 0.7804 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007863/1.49, allocations: 52.52 kB / 0.7804 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/1.493, allocations: 299.8 kB / 0.7807 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002149/1.495, allocations: 0.5648 MB / 0.7813 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/1.496, allocations: 70.8 kB / 0.7813 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002123/1.498, allocations: 1.504 MB / 0.7828 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.498, allocations: 0 / 0.7828 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004192/1.502, allocations: 1.169 MB / 0.784 GB, free: 165.2 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.04764/1.55, allocations: 14.91 MB / 0.7985 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02163/1.571, allocations: 6.618 MB / 0.805 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/1.571, allocations: 128 / 0.805 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01499/1.586, allocations: 4.4 MB / 0.8093 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005197/1.592, allocations: 260.2 kB / 0.8095 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1208/1.712, allocations: 47.06 MB / 0.8555 GB, free: 121.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002287/1.715, allocations: 1.806 MB / 0.8572 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001893/1.717, allocations: 264.4 kB / 0.8575 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001963/1.719, allocations: 1.22 MB / 0.8587 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.122e-06/1.719, allocations: 4 kB / 0.8587 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1205/1.839, allocations: 81.05 MB / 0.9378 GB, free: 37.99 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/1.839, allocations: 233 kB / 0.9381 GB, free: 37.74 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.377/6.216, allocations: 3.469 kB / 0.9381 GB, free: 37.74 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)