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.001523/0.001523, allocations: 108 kB / 15.61 MB, free: 152 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.384/1.384, allocations: 222.9 MB / 239.2 MB, free: 4.617 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.00172/0.00172, allocations: 184.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.0.1/package.mo): time 0.5122/0.5122, allocations: 78.53 MB / 418.2 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 75.88 kB / 497.6 MB, free: 6.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1522, allocations: 68.18 MB / 0.5525 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.2891/0.4414, allocations: 13.57 MB / 0.5657 GB, free: 31.68 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007828/0.4493, allocations: 3.457 MB / 0.5691 GB, free: 30.6 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003499/0.4528, allocations: 28.44 kB / 0.5691 GB, free: 30.6 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.4547, allocations: 0.556 MB / 0.5697 GB, free: 30.32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005219/0.46, allocations: 1.419 MB / 0.5711 GB, free: 29.59 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003661/0.4637, allocations: 1.508 MB / 0.5725 GB, free: 29.41 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004936/0.4686, allocations: 3.692 MB / 0.5761 GB, free: 28.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.4698, allocations: 0.895 MB / 0.577 GB, free: 28.37 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002174/0.472, allocations: 1.527 MB / 0.5785 GB, free: 27.95 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.4738, allocations: 1.955 MB / 0.5804 GB, free: 27.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003928/0.4742, allocations: 284.2 kB / 0.5807 GB, free: 27.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008337/0.4751, allocations: 429.4 kB / 0.5811 GB, free: 27.4 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000508/0.4756, allocations: 0.7678 MB / 0.5818 GB, free: 26.93 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.4768, allocations: 1.628 MB / 0.5834 GB, free: 25.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003558/0.4804, allocations: 3.913 MB / 0.5873 GB, free: 24.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4804, allocations: 0 / 0.5873 GB, free: 24.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4804, allocations: 0 / 0.5873 GB, free: 24.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.505e-05/0.4805, allocations: 4 kB / 0.5873 GB, free: 24.01 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02395/0.5045, allocations: 6.59 MB / 0.5937 GB, free: 21.38 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.5045, allocations: 9.5 kB / 0.5937 GB, free: 21.38 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003846/0.5049, allocations: 303.5 kB / 0.594 GB, free: 21.19 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01522/0.5201, allocations: 2.272 MB / 0.5962 GB, free: 20.75 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00487/0.5251, allocations: 1.878 MB / 0.598 GB, free: 19.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006868/0.5258, allocations: 0.7228 MB / 0.5987 GB, free: 18.94 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005476/0.5263, allocations: 211 kB / 0.599 GB, free: 18.88 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00665/0.533, allocations: 3.028 MB / 0.6019 GB, free: 17.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.5331, allocations: 4 kB / 0.6019 GB, free: 17.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.5333, allocations: 86.56 kB / 0.602 GB, free: 17.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.795e-05/0.5334, allocations: 50.06 kB / 0.602 GB, free: 17.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006301/0.5397, allocations: 2.786 MB / 0.6048 GB, free: 16.71 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.02077/0.5605, allocations: 9.865 MB / 0.6144 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/0.5716, allocations: 4.195 MB / 0.6185 GB, free: 9.023 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004485/0.5761, allocations: 1.968 MB / 0.6204 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004564/0.5766, allocations: 40.09 kB / 0.6205 GB, free: 8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005556/0.5822, allocations: 2.231 MB / 0.6226 GB, free: 6.715 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 1.654e-05/0.5822, allocations: 0 / 0.6226 GB, free: 6.715 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1258/0.708, allocations: 29.46 MB / 0.6514 GB, free: 9.203 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.7082, allocations: 192.3 kB / 0.6516 GB, free: 8.977 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004968/0.7132, allocations: 2.273 MB / 0.6538 GB, free: 6.684 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000918/0.7142, allocations: 73.7 kB / 0.6539 GB, free: 6.605 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.7153, allocations: 1.176 MB / 0.655 GB, free: 5.418 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001691/0.717, allocations: 0.8665 MB / 0.6559 GB, free: 4.539 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002861/0.7199, allocations: 0.5617 MB / 0.6564 GB, free: 3.969 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.72, allocations: 301.1 kB / 0.6567 GB, free: 3.672 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004996/0.725, allocations: 1.947 MB / 0.6586 GB, free: 1.723 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005448/0.7305, allocations: 2.317 MB / 0.6609 GB, free: 15.31 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05547/0.786, allocations: 14.04 MB / 0.6746 GB, free: 1.059 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.219e-05/0.7861, allocations: 7.938 kB / 0.6746 GB, free: 1.051 MB / 478.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04058/0.8267, allocations: 12.28 MB / 0.6866 GB, free: 4.699 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001407/0.8268, allocations: 122.7 kB / 0.6867 GB, free: 4.555 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.535e-05/0.8269, allocations: 8.812 kB / 0.6867 GB, free: 4.547 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01862/0.8455, allocations: 5.321 MB / 0.6919 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003248/0.8488, allocations: 0.5578 MB / 0.6924 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06605/0.9149, allocations: 23.52 MB / 0.7154 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005425/0.9204, allocations: 489.1 kB / 0.7159 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009716/0.9214, allocations: 116.9 kB / 0.716 GB, free: 6.398 MB / 0.5137 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.002639/0.924, allocations: 0.5295 MB / 0.7165 GB, free: 5.848 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001564/0.9256, allocations: 292.3 kB / 0.7168 GB, free: 5.559 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04251/0.9681, allocations: 11.9 MB / 0.7284 GB, free: 9.613 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.974e-05/0.9682, allocations: 24 kB / 0.7284 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.41e-05/0.9683, allocations: 21.06 kB / 0.7285 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/0.9684, allocations: 15.95 kB / 0.7285 GB, free: 9.555 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.05681/1.025, allocations: 15.49 MB / 0.7436 GB, free: 9.898 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.358e-05/1.025, allocations: 5.344 kB / 0.7436 GB, free: 9.895 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/1.027, allocations: 247.6 kB / 0.7438 GB, free: 9.652 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01776/1.045, allocations: 5.292 MB / 0.749 GB, free: 4.348 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007282/1.046, allocations: 47.98 kB / 0.7491 GB, free: 4.301 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3721/1.418, allocations: 24.96 MB / 0.7734 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.418, allocations: 2.672 kB / 0.7734 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04482/1.463, allocations: 14.25 MB / 0.7874 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/1.464, allocations: 408.3 kB / 0.7877 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009929/1.465, allocations: 48.47 kB / 0.7878 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00326/1.468, allocations: 301 kB / 0.7881 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002178/1.47, allocations: 0.5807 MB / 0.7886 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002307/1.471, allocations: 64.36 kB / 0.7887 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002731/1.473, allocations: 1.509 MB / 0.7902 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.01e-07/1.473, allocations: 0 / 0.7902 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004931/1.478, allocations: 1.174 MB / 0.7913 GB, free: 163.1 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.04911/1.527, allocations: 14.89 MB / 0.8059 GB, free: 161 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02221/1.55, allocations: 6.815 MB / 0.8125 GB, free: 158.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/1.55, allocations: 0.6562 kB / 0.8125 GB, free: 158.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01322/1.563, allocations: 4.398 MB / 0.8168 GB, free: 157 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002884/1.566, allocations: 267.2 kB / 0.8171 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1003/1.666, allocations: 45.52 MB / 0.8615 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/1.667, allocations: 1.799 MB / 0.8633 GB, free: 114 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001293/1.669, allocations: 265.4 kB / 0.8635 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/1.67, allocations: 1.233 MB / 0.8647 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of SimCode: time 7.12e-07/1.67, allocations: 2.625 kB / 0.8647 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1234/1.793, allocations: 88.59 MB / 0.9512 GB, free: 24.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/16.19, allocations: 6.078 kB / 0.9512 GB, free: 24.39 MB / 0.5606 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)