Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_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.001068/0.001068, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.291/1.291, allocations: 222.9 MB / 239 MB, free: 4.715 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.001436/0.001436, allocations: 188.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.5158/0.5158, allocations: 91.9 MB / 431.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 83.89 kB / 0.5015 GB, free: 7.93 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3314, allocations: 71.26 MB / 0.5711 GB, free: 36.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.0102/0.3417, allocations: 14.65 MB / 0.5854 GB, free: 26.84 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006715/0.3484, allocations: 3.666 MB / 0.589 GB, free: 24.21 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00205/0.3505, allocations: 31.69 kB / 0.589 GB, free: 24.21 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.3518, allocations: 443.2 kB / 0.5894 GB, free: 24.03 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003441/0.3553, allocations: 1.234 MB / 0.5906 GB, free: 23.21 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.3581, allocations: 1.428 MB / 0.592 GB, free: 22.42 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004205/0.3623, allocations: 3.784 MB / 0.5957 GB, free: 20.52 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.3635, allocations: 0.8907 MB / 0.5966 GB, free: 20.06 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002367/0.3659, allocations: 1.575 MB / 0.5981 GB, free: 19.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001962/0.3679, allocations: 2.002 MB / 0.6001 GB, free: 18.28 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005474/0.3684, allocations: 295.3 kB / 0.6004 GB, free: 18.28 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.3695, allocations: 446.4 kB / 0.6008 GB, free: 18.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004945/0.37, allocations: 0.7798 MB / 0.6015 GB, free: 17.71 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.3714, allocations: 1.674 MB / 0.6032 GB, free: 16.58 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004478/0.3758, allocations: 3.987 MB / 0.6071 GB, free: 14.74 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3759, allocations: 0 / 0.6071 GB, free: 14.74 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3759, allocations: 0 / 0.6071 GB, free: 14.74 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.376, allocations: 0 / 0.6071 GB, free: 14.74 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: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.02474/0.4007, allocations: 6.681 MB / 0.6136 GB, free: 12.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.4008, allocations: 10.81 kB / 0.6136 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004744/0.4013, allocations: 311.2 kB / 0.6139 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01543/0.4167, allocations: 2.278 MB / 0.6161 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004254/0.421, allocations: 1.906 MB / 0.618 GB, free: 10.28 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006732/0.4217, allocations: 0.7278 MB / 0.6187 GB, free: 9.621 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005683/0.4223, allocations: 224.1 kB / 0.6189 GB, free: 9.543 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006999/0.4293, allocations: 3.056 MB / 0.6219 GB, free: 8.383 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.071e-05/0.4294, allocations: 9.125 kB / 0.6219 GB, free: 8.375 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002567/0.4296, allocations: 82.06 kB / 0.622 GB, free: 8.312 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.975e-05/0.4297, allocations: 49.31 kB / 0.622 GB, free: 8.312 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006139/0.4358, allocations: 2.805 MB / 0.6248 GB, free: 7.359 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.01736/0.4532, allocations: 9.971 MB / 0.6345 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01104/0.4643, allocations: 4.227 MB / 0.6386 GB, free: 8.672 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00435/0.4686, allocations: 1.983 MB / 0.6406 GB, free: 6.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003187/0.469, allocations: 37.95 kB / 0.6406 GB, free: 6.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004693/0.4737, allocations: 2.259 MB / 0.6428 GB, free: 4.363 MB / 446.1 MB Notification: Performance of pre-optimization done (n=250): time 4.819e-06/0.4737, allocations: 0 / 0.6428 GB, free: 4.363 MB / 446.1 MB Notification: Performance of matching and sorting (n=250): time 0.1248/0.5985, allocations: 28.82 MB / 0.671 GB, free: 7.426 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.5986, allocations: 184.2 kB / 0.6711 GB, free: 7.207 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/0.6022, allocations: 2.333 MB / 0.6734 GB, free: 4.855 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008387/0.603, allocations: 69.7 kB / 0.6735 GB, free: 4.781 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009129/0.604, allocations: 1.18 MB / 0.6746 GB, free: 3.59 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/0.6053, allocations: 0.8897 MB / 0.6755 GB, free: 2.688 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001137/0.6065, allocations: 0.566 MB / 0.6761 GB, free: 2.113 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.6066, allocations: 305.1 kB / 0.6763 GB, free: 1.812 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/0.6108, allocations: 1.986 MB / 0.6783 GB, free: 15.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004535/0.6153, allocations: 2.354 MB / 0.6806 GB, free: 13.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05732/0.6727, allocations: 14.43 MB / 0.6947 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.958e-05/0.6727, allocations: 4 kB / 0.6947 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04238/0.7151, allocations: 12.61 MB / 0.707 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.76e-05/0.7153, allocations: 118.8 kB / 0.7071 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/0.7153, allocations: 8 kB / 0.7071 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01875/0.7341, allocations: 5.441 MB / 0.7124 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003485/0.7376, allocations: 0.5734 MB / 0.713 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06012/0.7977, allocations: 23.66 MB / 0.7361 GB, free: 4.047 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005517/0.8033, allocations: 0.4931 MB / 0.7366 GB, free: 3.551 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008242/0.8042, allocations: 120 kB / 0.7367 GB, free: 3.434 MB / 0.5294 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 Syn2.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 (336): * Single equations (assignments): 331 * 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,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001623/0.8058, allocations: 0.5381 MB / 0.7372 GB, free: 2.875 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008792/0.8067, allocations: 304.2 kB / 0.7375 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04022/0.8469, allocations: 11.95 MB / 0.7492 GB, free: 6.527 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.082e-05/0.847, allocations: 24 kB / 0.7492 GB, free: 6.504 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-05/0.847, allocations: 20 kB / 0.7492 GB, free: 6.484 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.481e-05/0.8471, allocations: 15.89 kB / 0.7492 GB, free: 6.469 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.0473/0.8944, allocations: 15.59 MB / 0.7645 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-05/0.8945, allocations: 0 / 0.7645 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001832/0.8963, allocations: 255.6 kB / 0.7647 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01795/0.9143, allocations: 5.279 MB / 0.7699 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007864/0.9151, allocations: 55.98 kB / 0.7699 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3392/1.254, allocations: 24.95 MB / 0.7943 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/1.254, allocations: 1.094 kB / 0.7943 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04739/1.302, allocations: 14.34 MB / 0.8083 GB, free: 153 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/1.303, allocations: 419.1 kB / 0.8087 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008298/1.304, allocations: 44.22 kB / 0.8087 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003387/1.307, allocations: 299.1 kB / 0.809 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002298/1.309, allocations: 0.5849 MB / 0.8096 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/1.31, allocations: 65.06 kB / 0.8096 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002469/1.312, allocations: 1.545 MB / 0.8111 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.3e-07/1.312, allocations: 4.969 kB / 0.8112 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0048/1.317, allocations: 1.189 MB / 0.8123 GB, free: 151.8 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,Syn2.e2q,Syn2.e2d,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 (159): * Single equations (assignments): 154 * 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.04263/1.36, allocations: 14.97 MB / 0.8269 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0207/1.38, allocations: 6.9 MB / 0.8337 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.381, allocations: 0 / 0.8337 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01281/1.393, allocations: 4.431 MB / 0.838 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002888/1.396, allocations: 263.7 kB / 0.8383 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.107/1.503, allocations: 47.56 MB / 0.8847 GB, free: 82.25 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/1.504, allocations: 1.82 MB / 0.8865 GB, free: 80.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001524/1.506, allocations: 266.7 kB / 0.8867 GB, free: 80.14 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001365/1.507, allocations: 1.245 MB / 0.8879 GB, free: 78.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.282e-06/1.507, allocations: 0 / 0.8879 GB, free: 78.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1193/1.627, allocations: 87.29 MB / 0.9732 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/1.627, allocations: 242.8 kB / 0.9734 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.512/6.138, allocations: 0 / 0.9734 GB, free: 7.609 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)