Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.008585/0.008585, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.355/1.355, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001349/0.001349, allocations: 196.3 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4948/0.4948, allocations: 91.92 MB / 431.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 80.64 kB / 0.5723 GB, free: 33.56 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1176, allocations: 71.3 MB / 0.6419 GB, free: 4.062 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.006963/0.1246, allocations: 6.206 MB / 0.6479 GB, free: 13.83 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003819/0.1285, allocations: 1.869 MB / 0.6498 GB, free: 11.95 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008514/0.1294, allocations: 8 kB / 0.6498 GB, free: 11.95 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007068/0.1301, allocations: 206.1 kB / 0.65 GB, free: 11.74 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00248/0.1326, allocations: 0.8044 MB / 0.6508 GB, free: 10.94 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.1342, allocations: 0.5877 MB / 0.6513 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00194/0.1362, allocations: 1.386 MB / 0.6527 GB, free: 8.965 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005149/0.1367, allocations: 280.2 kB / 0.653 GB, free: 8.676 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009542/0.1377, allocations: 0.5835 MB / 0.6535 GB, free: 8.09 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001051/0.1387, allocations: 0.7545 MB / 0.6543 GB, free: 7.332 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000316/0.139, allocations: 104 kB / 0.6544 GB, free: 7.23 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006626/0.1397, allocations: 243.8 kB / 0.6546 GB, free: 6.992 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003096/0.14, allocations: 298.7 kB / 0.6549 GB, free: 6.699 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007507/0.1408, allocations: 0.6097 MB / 0.6555 GB, free: 6.086 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002129/0.1429, allocations: 1.494 MB / 0.6569 GB, free: 4.586 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.143, allocations: 0 / 0.6569 GB, free: 4.586 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.143, allocations: 0 / 0.6569 GB, free: 4.586 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.622e-05/0.1431, allocations: 4 kB / 0.6569 GB, free: 4.582 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.009739/0.1528, allocations: 2.527 MB / 0.6594 GB, free: 2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.1529, allocations: 8.031 kB / 0.6594 GB, free: 1.992 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002367/0.1531, allocations: 118.5 kB / 0.6595 GB, free: 1.867 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005398/0.1585, allocations: 0.7718 MB / 0.6603 GB, free: 1.086 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/0.1604, allocations: 0.8094 MB / 0.6611 GB, free: 224 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003885/0.1608, allocations: 260.2 kB / 0.6613 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002937/0.1611, allocations: 75.95 kB / 0.6614 GB, free: 15.86 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00277/0.1639, allocations: 1.174 MB / 0.6625 GB, free: 14.66 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.1639, allocations: 3.938 kB / 0.6625 GB, free: 14.65 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.164, allocations: 32 kB / 0.6626 GB, free: 14.62 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.164, allocations: 16 kB / 0.6626 GB, free: 14.61 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002208/0.1663, allocations: 0.9537 MB / 0.6635 GB, free: 13.65 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.0069/0.1732, allocations: 3.559 MB / 0.667 GB, free: 9.902 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007531/0.1807, allocations: 2.3 MB / 0.6692 GB, free: 7.512 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001494/0.1823, allocations: 0.662 MB / 0.6699 GB, free: 6.848 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.1824, allocations: 20.64 kB / 0.6699 GB, free: 6.828 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.1825, allocations: 43.22 kB / 0.6699 GB, free: 6.777 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 3.136e-06/0.1825, allocations: 0 / 0.6699 GB, free: 6.777 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.02843/0.2109, allocations: 6.882 MB / 0.6767 GB, free: 15.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.73e-05/0.211, allocations: 89.77 kB / 0.6768 GB, free: 15.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0014/0.2124, allocations: 0.9696 MB / 0.6777 GB, free: 14.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000205/0.2127, allocations: 45.64 kB / 0.6777 GB, free: 14.69 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000377/0.213, allocations: 461.4 kB / 0.6782 GB, free: 14.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004551/0.2135, allocations: 329.3 kB / 0.6785 GB, free: 13.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005663/0.2141, allocations: 259.5 kB / 0.6787 GB, free: 13.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.554e-05/0.2142, allocations: 301.1 kB / 0.679 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/0.2157, allocations: 0.6988 MB / 0.6797 GB, free: 12.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/0.2174, allocations: 0.9146 MB / 0.6806 GB, free: 11.67 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02217/0.2395, allocations: 5.061 MB / 0.6856 GB, free: 6.531 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.2396, allocations: 4 kB / 0.6856 GB, free: 6.527 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01377/0.2534, allocations: 4.141 MB / 0.6896 GB, free: 2.371 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.2534, allocations: 8.938 kB / 0.6896 GB, free: 2.363 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.2535, allocations: 11.94 kB / 0.6896 GB, free: 2.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00563/0.2591, allocations: 1.516 MB / 0.6911 GB, free: 0.832 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.2604, allocations: 259.6 kB / 0.6913 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02008/0.2805, allocations: 8.273 MB / 0.6994 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.2821, allocations: 175.1 kB / 0.6996 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/0.2824, allocations: 55.97 kB / 0.6996 GB, free: 7.93 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0006561/0.283, allocations: 274.5 kB / 0.6999 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/0.2841, allocations: 337.5 kB / 0.7002 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/0.296, allocations: 3.588 MB / 0.7037 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.296, allocations: 8 kB / 0.7037 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.019e-05/0.296, allocations: 11.94 kB / 0.7038 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-05/0.2961, allocations: 7.969 kB / 0.7038 GB, free: 3.68 MB / 0.4981 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.01488/0.311, allocations: 5.132 MB / 0.7088 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.311, allocations: 0 / 0.7088 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006173/0.3116, allocations: 111.9 kB / 0.7089 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005667/0.3173, allocations: 1.575 MB / 0.7104 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/0.3175, allocations: 27.92 kB / 0.7104 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02059/0.3381, allocations: 10.76 MB / 0.721 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.3381, allocations: 3.938 kB / 0.721 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01489/0.353, allocations: 4.614 MB / 0.7255 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005035/0.3536, allocations: 220.1 kB / 0.7257 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000382/0.354, allocations: 20 kB / 0.7257 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.3552, allocations: 87.89 kB / 0.7258 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006072/0.3558, allocations: 180.7 kB / 0.7259 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/0.356, allocations: 20 kB / 0.726 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001062/0.3571, allocations: 0.6434 MB / 0.7266 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.21e-07/0.3571, allocations: 0 / 0.7266 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001669/0.3588, allocations: 435.7 kB / 0.727 GB, free: 11.36 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01542/0.3742, allocations: 5.215 MB / 0.7321 GB, free: 6.105 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006512/0.3807, allocations: 2.288 MB / 0.7343 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3808, allocations: 4 kB / 0.7343 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004206/0.385, allocations: 1.325 MB / 0.7356 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.3867, allocations: 346.9 kB / 0.736 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03958/0.4263, allocations: 15.04 MB / 0.7507 GB, free: 2.777 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007306/0.4271, allocations: 1.081 MB / 0.7517 GB, free: 1.668 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004261/0.4276, allocations: 95.33 kB / 0.7518 GB, free: 1.57 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006459/0.4282, allocations: 439.3 kB / 0.7522 GB, free: 1.141 MB / 0.545 GB Notification: Performance of SimCode: time 7.51e-07/0.4282, allocations: 4 kB / 0.7522 GB, free: 1.137 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3343/0.7626, allocations: 31.34 MB / 0.7828 GB, free: 118 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.82/17.58, allocations: 6.156 kB / 0.7828 GB, free: 118 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 0.001 --interface-type ModelExchange --solver CVode --output-interval 0.01 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)