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.001301/0.001301, 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.261/1.261, allocations: 222.9 MB / 238.8 MB, free: 4.758 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.001537/0.001537, allocations: 184.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4379/0.4379, allocations: 78.52 MB / 417.8 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 79.88 kB / 496.9 MB, free: 6.703 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1349, allocations: 68.17 MB / 0.5518 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.255/0.39, allocations: 14.37 MB / 0.5658 GB, free: 31.1 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008067/0.3981, allocations: 3.599 MB / 0.5693 GB, free: 30.08 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003467/0.4016, allocations: 34.09 kB / 0.5694 GB, free: 30.07 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002256/0.4039, allocations: 437.1 kB / 0.5698 GB, free: 29.92 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005299/0.4092, allocations: 1.218 MB / 0.571 GB, free: 29.35 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003775/0.413, allocations: 1.42 MB / 0.5724 GB, free: 29.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005124/0.4181, allocations: 3.51 MB / 0.5758 GB, free: 28.33 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.4199, allocations: 0.8028 MB / 0.5766 GB, free: 28.11 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002552/0.4225, allocations: 1.404 MB / 0.5779 GB, free: 27.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003174/0.4257, allocations: 1.858 MB / 0.5798 GB, free: 27.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.427, allocations: 173 kB / 0.5799 GB, free: 27.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001782/0.4288, allocations: 308.7 kB / 0.5802 GB, free: 27.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.4301, allocations: 0.6592 MB / 0.5809 GB, free: 26.93 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00274/0.4328, allocations: 1.524 MB / 0.5823 GB, free: 26.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003158/0.436, allocations: 3.801 MB / 0.5861 GB, free: 24.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.436, allocations: 1.219 kB / 0.5861 GB, free: 24.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.436, allocations: 0 / 0.5861 GB, free: 24.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.534e-05/0.4361, allocations: 4 kB / 0.5861 GB, free: 24.33 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.02226/0.4584, allocations: 6.587 MB / 0.5925 GB, free: 21.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.4585, allocations: 9.562 kB / 0.5925 GB, free: 21.7 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004013/0.4589, allocations: 298.1 kB / 0.5928 GB, free: 21.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01462/0.4735, allocations: 2.273 MB / 0.595 GB, free: 21.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004173/0.4777, allocations: 1.879 MB / 0.5968 GB, free: 19.92 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006246/0.4784, allocations: 0.7238 MB / 0.5976 GB, free: 19.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004756/0.4788, allocations: 214.8 kB / 0.5978 GB, free: 19.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006832/0.4857, allocations: 3.023 MB / 0.6007 GB, free: 18.05 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.4858, allocations: 4.703 kB / 0.6007 GB, free: 18.05 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002525/0.486, allocations: 92.19 kB / 0.6008 GB, free: 17.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.983e-05/0.4861, allocations: 51.66 kB / 0.6009 GB, free: 17.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00608/0.4922, allocations: 2.783 MB / 0.6036 GB, free: 17.04 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.02018/0.5124, allocations: 9.866 MB / 0.6132 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01066/0.5231, allocations: 4.188 MB / 0.6173 GB, free: 9.695 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004248/0.5273, allocations: 1.966 MB / 0.6192 GB, free: 8.684 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004751/0.5278, allocations: 48.42 kB / 0.6193 GB, free: 8.664 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005146/0.533, allocations: 2.222 MB / 0.6214 GB, free: 7.387 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 1.083e-05/0.533, allocations: 0 / 0.6214 GB, free: 7.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1227/0.6558, allocations: 29.47 MB / 0.6502 GB, free: 10.11 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.6559, allocations: 184.3 kB / 0.6504 GB, free: 9.891 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004742/0.6607, allocations: 2.277 MB / 0.6526 GB, free: 7.594 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000824/0.6616, allocations: 69.7 kB / 0.6527 GB, free: 7.52 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.6627, allocations: 1.176 MB / 0.6538 GB, free: 6.332 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001625/0.6644, allocations: 0.8665 MB / 0.6547 GB, free: 5.453 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002699/0.6671, allocations: 0.5617 MB / 0.6552 GB, free: 4.883 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.6672, allocations: 301.1 kB / 0.6555 GB, free: 4.586 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004736/0.672, allocations: 1.947 MB / 0.6574 GB, free: 2.637 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004976/0.677, allocations: 2.313 MB / 0.6597 GB, free: 240 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05511/0.7321, allocations: 14.01 MB / 0.6733 GB, free: 2.016 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.065e-05/0.7322, allocations: 3.938 kB / 0.6734 GB, free: 2.012 MB / 478.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04271/0.7749, allocations: 12.28 MB / 0.6853 GB, free: 5.664 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.7751, allocations: 122.7 kB / 0.6855 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.285e-05/0.7751, allocations: 12 kB / 0.6855 GB, free: 5.508 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01814/0.7933, allocations: 5.309 MB / 0.6907 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003073/0.7964, allocations: 0.5578 MB / 0.6912 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05964/0.8561, allocations: 21.61 MB / 0.7123 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005076/0.8612, allocations: 485.1 kB / 0.7128 GB, free: 9.402 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009556/0.8622, allocations: 116 kB / 0.7129 GB, free: 9.289 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.002576/0.8648, allocations: 0.5312 MB / 0.7134 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/0.8663, allocations: 296.9 kB / 0.7137 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04142/0.9077, allocations: 11.9 MB / 0.7253 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.621e-05/0.9078, allocations: 24 kB / 0.7253 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.132e-05/0.9079, allocations: 20.5 kB / 0.7253 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001066/0.908, allocations: 11.95 kB / 0.7254 GB, free: 12.45 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.04923/0.9573, allocations: 15.5 MB / 0.7405 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-05/0.9574, allocations: 10.91 kB / 0.7405 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00168/0.959, allocations: 239.7 kB / 0.7407 GB, free: 12.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0183/0.9774, allocations: 5.292 MB / 0.7459 GB, free: 7.238 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008504/0.9783, allocations: 55.92 kB / 0.7459 GB, free: 7.184 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05875/1.037, allocations: 22.69 MB / 0.7681 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.037, allocations: 0 / 0.7681 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3075/1.345, allocations: 14.25 MB / 0.782 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.346, allocations: 414 kB / 0.7824 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001311/1.347, allocations: 44.52 kB / 0.7825 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003762/1.351, allocations: 297.9 kB / 0.7827 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002502/1.353, allocations: 0.5662 MB / 0.7833 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004951/1.354, allocations: 63.25 kB / 0.7834 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003244/1.357, allocations: 1.509 MB / 0.7848 GB, free: 166 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.357, allocations: 0 / 0.7848 GB, free: 166 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005275/1.363, allocations: 1.168 MB / 0.786 GB, free: 166 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.04805/1.411, allocations: 14.9 MB / 0.8005 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02064/1.431, allocations: 6.597 MB / 0.807 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.431, allocations: 3.188 kB / 0.807 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01485/1.446, allocations: 4.396 MB / 0.8113 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004969/1.451, allocations: 263.8 kB / 0.8115 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1168/1.568, allocations: 46.53 MB / 0.8569 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/1.57, allocations: 1.81 MB / 0.8587 GB, free: 119 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001695/1.572, allocations: 261.6 kB / 0.859 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001893/1.574, allocations: 1.222 MB / 0.8602 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.192e-06/1.574, allocations: 0 / 0.8602 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1114/1.686, allocations: 82.42 MB / 0.9406 GB, free: 35.61 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/1.686, allocations: 245.6 kB / 0.9409 GB, free: 35.35 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.339/6.024, allocations: 0 / 0.9409 GB, free: 35.35 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)