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.001496/0.001496, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.407/1.407, allocations: 222.9 MB / 239 MB, free: 4.711 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.001579/0.001579, allocations: 192.5 kB / 289.3 MB, free: 2.457 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5307/0.5307, allocations: 91.89 MB / 431.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 79.88 kB / 0.5015 GB, free: 7.938 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3672, allocations: 71.25 MB / 0.5711 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01066/0.3779, allocations: 14.51 MB / 0.5853 GB, free: 26.8 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009032/0.387, allocations: 3.61 MB / 0.5888 GB, free: 24.2 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003833/0.3908, allocations: 37.16 kB / 0.5888 GB, free: 24.2 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002126/0.393, allocations: 436.9 kB / 0.5892 GB, free: 24.03 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005486/0.3985, allocations: 1.221 MB / 0.5904 GB, free: 23.21 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003743/0.4023, allocations: 1.411 MB / 0.5918 GB, free: 22.44 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005943/0.4083, allocations: 3.705 MB / 0.5954 GB, free: 20.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.4101, allocations: 0.8921 MB / 0.5963 GB, free: 20.11 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002918/0.4131, allocations: 1.532 MB / 0.5978 GB, free: 19.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003088/0.4162, allocations: 1.956 MB / 0.5997 GB, free: 18.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.4177, allocations: 288.3 kB / 0.6 GB, free: 18.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002143/0.4198, allocations: 426.1 kB / 0.6004 GB, free: 18.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.421, allocations: 0.7637 MB / 0.6011 GB, free: 17.8 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002394/0.4234, allocations: 1.644 MB / 0.6027 GB, free: 16.69 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004342/0.4278, allocations: 3.923 MB / 0.6066 GB, free: 14.87 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4278, allocations: 1.469 kB / 0.6066 GB, free: 14.87 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4278, allocations: 0 / 0.6066 GB, free: 14.87 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.4279, allocations: 0 / 0.6066 GB, free: 14.87 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.02714/0.4551, allocations: 6.584 MB / 0.613 GB, free: 12.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.4552, allocations: 9.219 kB / 0.613 GB, free: 12.24 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001307/0.4565, allocations: 303 kB / 0.6133 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/0.4728, allocations: 2.273 MB / 0.6155 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005652/0.4784, allocations: 1.867 MB / 0.6173 GB, free: 10.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000805/0.4793, allocations: 0.728 MB / 0.618 GB, free: 9.801 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001273/0.4806, allocations: 215 kB / 0.6182 GB, free: 9.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009804/0.4904, allocations: 3.032 MB / 0.6212 GB, free: 8.578 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.402e-05/0.4905, allocations: 1.094 kB / 0.6212 GB, free: 8.578 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006264/0.4912, allocations: 89.09 kB / 0.6213 GB, free: 8.508 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.604e-05/0.4912, allocations: 50.5 kB / 0.6213 GB, free: 8.508 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00757/0.4988, allocations: 2.78 MB / 0.6241 GB, free: 7.57 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.02241/0.5212, allocations: 9.924 MB / 0.6337 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.5327, allocations: 4.188 MB / 0.6378 GB, free: 9.504 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004782/0.5376, allocations: 1.968 MB / 0.6398 GB, free: 7.527 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005147/0.5381, allocations: 33.97 kB / 0.6398 GB, free: 7.496 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005711/0.5438, allocations: 2.236 MB / 0.642 GB, free: 5.238 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 6.202e-06/0.5439, allocations: 0 / 0.642 GB, free: 5.238 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.1218/0.6657, allocations: 28.18 MB / 0.6695 GB, free: 8.93 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.6658, allocations: 184.3 kB / 0.6697 GB, free: 8.711 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00446/0.6703, allocations: 2.273 MB / 0.6719 GB, free: 6.418 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008464/0.6712, allocations: 69.7 kB / 0.672 GB, free: 6.344 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000992/0.6722, allocations: 1.164 MB / 0.6731 GB, free: 5.168 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001466/0.6736, allocations: 0.8743 MB / 0.6739 GB, free: 4.281 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002114/0.6758, allocations: 0.5618 MB / 0.6745 GB, free: 3.711 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.856e-05/0.6759, allocations: 313 kB / 0.6748 GB, free: 3.402 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00438/0.6802, allocations: 1.951 MB / 0.6767 GB, free: 1.449 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004743/0.685, allocations: 2.318 MB / 0.679 GB, free: 15.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05578/0.7408, allocations: 14.07 MB / 0.6927 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.7409, allocations: 7.938 kB / 0.6927 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04365/0.7845, allocations: 12.5 MB / 0.7049 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.7847, allocations: 118.8 kB / 0.705 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.7847, allocations: 4 kB / 0.705 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.018/0.8027, allocations: 5.292 MB / 0.7102 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/0.8061, allocations: 0.5656 MB / 0.7108 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0632/0.8693, allocations: 23.21 MB / 0.7334 GB, free: 6.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005115/0.8745, allocations: 489.1 kB / 0.7339 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009593/0.8755, allocations: 116 kB / 0.734 GB, free: 6.176 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.002437/0.8779, allocations: 0.5182 MB / 0.7345 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001295/0.8792, allocations: 304.3 kB / 0.7348 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0404/0.9196, allocations: 11.91 MB / 0.7464 GB, free: 9.375 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.675e-05/0.9197, allocations: 24 kB / 0.7464 GB, free: 9.352 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.705e-05/0.9198, allocations: 20 kB / 0.7465 GB, free: 9.332 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.239e-05/0.9199, allocations: 11.95 kB / 0.7465 GB, free: 9.32 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.04713/0.967, allocations: 15.5 MB / 0.7616 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/0.9671, allocations: 4 kB / 0.7616 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/0.9688, allocations: 247.6 kB / 0.7618 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01772/0.9865, allocations: 5.247 MB / 0.767 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008061/0.9874, allocations: 63.92 kB / 0.767 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2755/1.263, allocations: 24.96 MB / 0.7914 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/1.263, allocations: 1.219 kB / 0.7914 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0459/1.309, allocations: 14.27 MB / 0.8053 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/1.31, allocations: 405.3 kB / 0.8057 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007494/1.311, allocations: 45.62 kB / 0.8058 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003033/1.314, allocations: 301 kB / 0.8061 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002172/1.316, allocations: 0.5854 MB / 0.8066 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002454/1.316, allocations: 65.25 kB / 0.8067 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002204/1.319, allocations: 1.499 MB / 0.8082 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/1.319, allocations: 0 / 0.8082 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003937/1.322, allocations: 1.173 MB / 0.8093 GB, free: 153.5 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.04124/1.364, allocations: 14.91 MB / 0.8239 GB, free: 146.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01896/1.383, allocations: 6.726 MB / 0.8304 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.383, allocations: 0 / 0.8304 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0118/1.395, allocations: 4.407 MB / 0.8347 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/1.397, allocations: 266.9 kB / 0.835 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1/1.497, allocations: 47.05 MB / 0.8809 GB, free: 85.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/1.498, allocations: 1.81 MB / 0.8827 GB, free: 84.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001268/1.5, allocations: 266.5 kB / 0.883 GB, free: 83.78 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/1.501, allocations: 1.233 MB / 0.8842 GB, free: 82.55 MB / 0.5606 GB Notification: Performance of SimCode: time 5.31e-07/1.501, allocations: 0 / 0.8842 GB, free: 82.55 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.539/5.04, allocations: 84.33 MB / 0.9665 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003034/5.04, allocations: 239.9 kB / 0.9667 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.901/9.942, allocations: 64 / 0.9667 GB, free: 14.21 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)