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.005531/0.005531, allocations: 101.3 kB / 15.73 MB, free: 6.016 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.468/1.468, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.0015/0.001501, allocations: 184.5 kB / 289.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5128/0.5128, allocations: 91.91 MB / 431.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 79.34 kB / 0.5723 GB, free: 33.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1179, allocations: 71.29 MB / 0.6419 GB, free: 4.043 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.006674/0.1246, allocations: 6.209 MB / 0.648 GB, free: 13.81 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003478/0.1282, allocations: 1.853 MB / 0.6498 GB, free: 11.95 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00052/0.1287, allocations: 11.94 kB / 0.6498 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004967/0.1292, allocations: 214.1 kB / 0.65 GB, free: 11.73 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001886/0.1311, allocations: 0.8043 MB / 0.6508 GB, free: 10.92 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.1325, allocations: 0.5914 MB / 0.6513 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.134, allocations: 1.382 MB / 0.6527 GB, free: 8.949 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004337/0.1344, allocations: 284.2 kB / 0.653 GB, free: 8.656 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007393/0.1352, allocations: 0.5912 MB / 0.6535 GB, free: 8.062 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007766/0.136, allocations: 0.7506 MB / 0.6543 GB, free: 7.309 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001497/0.1361, allocations: 108 kB / 0.6544 GB, free: 7.203 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004294/0.1366, allocations: 243.8 kB / 0.6546 GB, free: 6.965 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002397/0.1368, allocations: 290.7 kB / 0.6549 GB, free: 6.68 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004919/0.1373, allocations: 0.6097 MB / 0.6555 GB, free: 6.066 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.1389, allocations: 1.494 MB / 0.6569 GB, free: 4.566 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1389, allocations: 0 / 0.6569 GB, free: 4.566 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1389, allocations: 0 / 0.6569 GB, free: 4.566 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.1389, allocations: 0 / 0.6569 GB, free: 4.566 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.008135/0.1471, allocations: 2.535 MB / 0.6594 GB, free: 1.977 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1471, allocations: 8.031 kB / 0.6594 GB, free: 1.969 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.1473, allocations: 122.5 kB / 0.6595 GB, free: 1.84 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005077/0.1524, allocations: 0.7679 MB / 0.6603 GB, free: 1.07 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.1538, allocations: 0.8016 MB / 0.6611 GB, free: 216 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003172/0.1541, allocations: 260.2 kB / 0.6613 GB, free: 15.92 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.1543, allocations: 75.95 kB / 0.6614 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002411/0.1567, allocations: 1.176 MB / 0.6625 GB, free: 14.65 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.1567, allocations: 0 / 0.6625 GB, free: 14.65 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.758e-05/0.1568, allocations: 28 kB / 0.6626 GB, free: 14.62 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.1569, allocations: 16 kB / 0.6626 GB, free: 14.61 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002008/0.1589, allocations: 0.9576 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.006456/0.1653, allocations: 3.562 MB / 0.667 GB, free: 9.895 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007578/0.173, allocations: 2.303 MB / 0.6692 GB, free: 7.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.1744, allocations: 0.6595 MB / 0.6699 GB, free: 6.836 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.1745, allocations: 16.64 kB / 0.6699 GB, free: 6.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.1746, allocations: 51.2 kB / 0.67 GB, free: 6.762 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 3.396e-06/0.1746, allocations: 0 / 0.67 GB, free: 6.762 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.02881/0.2034, allocations: 6.867 MB / 0.6767 GB, free: 15.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.2035, allocations: 97.77 kB / 0.6768 GB, free: 15.72 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/0.2053, allocations: 0.9696 MB / 0.6777 GB, free: 14.73 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.2055, allocations: 45.64 kB / 0.6777 GB, free: 14.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004106/0.2059, allocations: 465.4 kB / 0.6782 GB, free: 14.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004236/0.2063, allocations: 333.2 kB / 0.6785 GB, free: 13.89 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005743/0.2069, allocations: 255.5 kB / 0.6788 GB, free: 13.64 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.207, allocations: 305.1 kB / 0.679 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.2086, allocations: 0.6949 MB / 0.6797 GB, free: 12.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.2103, allocations: 0.9146 MB / 0.6806 GB, free: 11.66 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02253/0.2328, allocations: 5.061 MB / 0.6856 GB, free: 6.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/0.2329, allocations: 0 / 0.6856 GB, free: 6.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01441/0.2473, allocations: 4.145 MB / 0.6896 GB, free: 2.359 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/0.2474, allocations: 9.25 kB / 0.6896 GB, free: 2.352 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.122e-05/0.2474, allocations: 8 kB / 0.6896 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005912/0.2533, allocations: 1.516 MB / 0.6911 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.2547, allocations: 259.6 kB / 0.6913 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02108/0.2758, allocations: 8.277 MB / 0.6994 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.2775, allocations: 171.1 kB / 0.6996 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002359/0.2778, allocations: 51.97 kB / 0.6996 GB, free: 7.926 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.0007677/0.2786, allocations: 278.9 kB / 0.6999 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/0.2798, allocations: 345.4 kB / 0.7002 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/0.2923, allocations: 3.58 MB / 0.7037 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.2923, allocations: 11.98 kB / 0.7037 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/0.2924, allocations: 8 kB / 0.7038 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/0.2924, allocations: 7.984 kB / 0.7038 GB, free: 3.672 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.01536/0.3078, allocations: 5.127 MB / 0.7088 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.3078, allocations: 8 kB / 0.7088 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/0.3084, allocations: 107.9 kB / 0.7089 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00578/0.3142, allocations: 1.579 MB / 0.7104 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.3144, allocations: 19.98 kB / 0.7104 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02086/0.3352, allocations: 10.76 MB / 0.721 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3353, allocations: 3.938 kB / 0.721 GB, free: 1.605 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01524/0.3505, allocations: 4.618 MB / 0.7255 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004134/0.351, allocations: 216.1 kB / 0.7257 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002916/0.3513, allocations: 19.98 kB / 0.7257 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.3525, allocations: 87.91 kB / 0.7258 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000541/0.353, allocations: 172.8 kB / 0.7259 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.456e-05/0.3531, allocations: 24 kB / 0.726 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009776/0.3541, allocations: 0.6472 MB / 0.7266 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3541, allocations: 0 / 0.7266 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001501/0.3556, allocations: 439.7 kB / 0.727 GB, free: 11.34 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.01573/0.3714, allocations: 5.207 MB / 0.7321 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006502/0.3779, allocations: 2.292 MB / 0.7343 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3779, allocations: 0 / 0.7343 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00428/0.3822, allocations: 1.325 MB / 0.7356 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.384, allocations: 351 kB / 0.736 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03949/0.4235, allocations: 15.05 MB / 0.7507 GB, free: 2.762 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008004/0.4243, allocations: 1.077 MB / 0.7517 GB, free: 1.656 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004364/0.4248, allocations: 95.34 kB / 0.7518 GB, free: 1.559 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000669/0.4255, allocations: 439.3 kB / 0.7522 GB, free: 1.129 MB / 0.545 GB Notification: Performance of SimCode: time 8.92e-07/0.4255, allocations: 192 / 0.7522 GB, free: 1.129 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3225/0.748, allocations: 31.34 MB / 0.7828 GB, free: 117.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.9/17.65, allocations: 6.5 kB / 0.7828 GB, free: 117.3 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)