Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.006223/0.006223, allocations: 101.3 kB / 15.73 MB, free: 6.035 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.364/1.364, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001607/0.001607, allocations: 192.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5449/0.5449, allocations: 91.91 MB / 431.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 88.48 kB / 0.5723 GB, free: 33.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1396, allocations: 71.29 MB / 0.6419 GB, free: 4.082 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006884/0.1465, allocations: 6.57 MB / 0.6483 GB, free: 13.48 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00382/0.1504, allocations: 1.963 MB / 0.6502 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005736/0.151, allocations: 12 kB / 0.6502 GB, free: 11.5 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006926/0.1517, allocations: 234 kB / 0.6504 GB, free: 11.27 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001826/0.1535, allocations: 0.8606 MB / 0.6513 GB, free: 10.41 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00121/0.1547, allocations: 0.6269 MB / 0.6519 GB, free: 9.793 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001409/0.1562, allocations: 1.592 MB / 0.6534 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004193/0.1566, allocations: 326.4 kB / 0.6538 GB, free: 7.867 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006709/0.1573, allocations: 0.6652 MB / 0.6544 GB, free: 7.199 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007668/0.1581, allocations: 0.8206 MB / 0.6552 GB, free: 6.375 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.1582, allocations: 120 kB / 0.6553 GB, free: 6.258 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004467/0.1587, allocations: 255.9 kB / 0.6556 GB, free: 6.008 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.159, allocations: 330.6 kB / 0.6559 GB, free: 5.684 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004996/0.1595, allocations: 0.668 MB / 0.6565 GB, free: 5.012 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.161, allocations: 1.673 MB / 0.6582 GB, free: 3.332 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.161, allocations: 0 / 0.6582 GB, free: 3.332 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.161, allocations: 0 / 0.6582 GB, free: 3.332 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.1611, allocations: 0 / 0.6582 GB, free: 3.332 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007965/0.169, allocations: 2.73 MB / 0.6608 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1691, allocations: 8.031 kB / 0.6608 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.1692, allocations: 130.6 kB / 0.661 GB, free: 396 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0047/0.174, allocations: 0.7835 MB / 0.6617 GB, free: 15.6 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.1755, allocations: 0.8873 MB / 0.6626 GB, free: 14.66 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002733/0.1757, allocations: 260.2 kB / 0.6628 GB, free: 14.37 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.1759, allocations: 84 kB / 0.6629 GB, free: 14.29 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.1779, allocations: 1.09 MB / 0.664 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.1779, allocations: 0 / 0.664 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-05/0.178, allocations: 28 kB / 0.664 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.178, allocations: 20 kB / 0.664 GB, free: 13.14 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.1799, allocations: 0.9877 MB / 0.665 GB, free: 12.15 MB / 478.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.006246/0.1862, allocations: 3.84 MB / 0.6688 GB, free: 8.125 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006775/0.193, allocations: 2.375 MB / 0.6711 GB, free: 5.656 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.1943, allocations: 0.6762 MB / 0.6717 GB, free: 4.977 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.1944, allocations: 12.98 kB / 0.6717 GB, free: 4.965 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001497/0.1959, allocations: 0.8216 MB / 0.6725 GB, free: 4.125 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.726e-06/0.1959, allocations: 0 / 0.6725 GB, free: 4.125 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02636/0.2223, allocations: 7.086 MB / 0.6795 GB, free: 12.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.577e-05/0.2224, allocations: 115.8 kB / 0.6796 GB, free: 12.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.224, allocations: 1.091 MB / 0.6806 GB, free: 11.73 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.2242, allocations: 49.73 kB / 0.6807 GB, free: 11.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.2245, allocations: 0.4897 MB / 0.6812 GB, free: 11.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003418/0.2249, allocations: 368.9 kB / 0.6815 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004645/0.2254, allocations: 291.5 kB / 0.6818 GB, free: 10.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.528e-05/0.2255, allocations: 301.1 kB / 0.6821 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.227, allocations: 0.7652 MB / 0.6828 GB, free: 9.469 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.2285, allocations: 0.9304 MB / 0.6837 GB, free: 8.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02126/0.2498, allocations: 5.571 MB / 0.6892 GB, free: 2.844 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.2499, allocations: 0 / 0.6892 GB, free: 2.844 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01246/0.2623, allocations: 4.344 MB / 0.6934 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.064e-05/0.2624, allocations: 55.41 kB / 0.6935 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.2625, allocations: 7.984 kB / 0.6935 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005142/0.2676, allocations: 1.524 MB / 0.695 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.2691, allocations: 291.6 kB / 0.6952 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.018/0.2871, allocations: 8.273 MB / 0.7033 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/0.2889, allocations: 207 kB / 0.7035 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.289, allocations: 51.98 kB / 0.7036 GB, free: 3.902 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005691/0.2896, allocations: 310.8 kB / 0.7039 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.2898, allocations: 135.1 kB / 0.704 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/0.3016, allocations: 3.869 MB / 0.7078 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.3017, allocations: 12 kB / 0.7078 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.3017, allocations: 4 kB / 0.7078 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/0.3017, allocations: 11.98 kB / 0.7078 GB, free: 15.53 MB / 0.5137 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.01373/0.3155, allocations: 5.467 MB / 0.7131 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.3155, allocations: 0 / 0.7131 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005479/0.3161, allocations: 107.8 kB / 0.7132 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005147/0.3212, allocations: 1.582 MB / 0.7148 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.3214, allocations: 20 kB / 0.7148 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01907/0.3404, allocations: 9.647 MB / 0.7242 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3405, allocations: 3.938 kB / 0.7242 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/0.3541, allocations: 4.739 MB / 0.7289 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005305/0.3547, allocations: 232 kB / 0.7291 GB, free: 9.277 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.3548, allocations: 16 kB / 0.7291 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.3559, allocations: 107.9 kB / 0.7292 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005651/0.3565, allocations: 196.7 kB / 0.7294 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/0.3566, allocations: 31.98 kB / 0.7294 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001007/0.3576, allocations: 0.7312 MB / 0.7301 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3576, allocations: 0 / 0.7301 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001326/0.3589, allocations: 475.7 kB / 0.7306 GB, free: 7.727 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01364/0.3726, allocations: 5.324 MB / 0.7358 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005881/0.3785, allocations: 2.502 MB / 0.7382 GB, free: 15.81 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3785, allocations: 4.062 kB / 0.7382 GB, free: 15.81 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003944/0.3825, allocations: 1.589 MB / 0.7398 GB, free: 14.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009822/0.3835, allocations: 122.1 kB / 0.7399 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03532/0.4188, allocations: 16.04 MB / 0.7556 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006316/0.4195, allocations: 1.12 MB / 0.7567 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004883/0.42, allocations: 120 kB / 0.7568 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000559/0.4205, allocations: 471.3 kB / 0.7572 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of SimCode: time 4.81e-07/0.4205, allocations: 0 / 0.7572 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3712/0.7917, allocations: 34.21 MB / 0.7906 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.5, allocations: 2.062 kB / 0.7906 GB, free: 111.9 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)