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.009006/0.009007, allocations: 99.69 kB / 15.73 MB, free: 5.555 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.512/1.512, allocations: 222.9 MB / 239.4 MB, free: 4.504 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.001815/0.001815, allocations: 180.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5683/0.5683, allocations: 91.9 MB / 431.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 80.86 kB / 0.5723 GB, free: 33.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1647, allocations: 71.29 MB / 0.6419 GB, free: 4.023 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.008319/0.173, allocations: 6.202 MB / 0.6479 GB, free: 13.79 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004383/0.1775, allocations: 1.857 MB / 0.6498 GB, free: 11.93 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000617/0.1781, allocations: 12 kB / 0.6498 GB, free: 11.92 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005553/0.1787, allocations: 218 kB / 0.65 GB, free: 11.7 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00193/0.1807, allocations: 0.7679 MB / 0.6507 GB, free: 10.94 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.182, allocations: 0.5854 MB / 0.6513 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00177/0.1838, allocations: 1.374 MB / 0.6526 GB, free: 8.977 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004635/0.1843, allocations: 284.2 kB / 0.6529 GB, free: 8.684 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007328/0.185, allocations: 0.5873 MB / 0.6535 GB, free: 8.094 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008905/0.1859, allocations: 0.7584 MB / 0.6542 GB, free: 7.332 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.1861, allocations: 104 kB / 0.6543 GB, free: 7.23 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004804/0.1866, allocations: 239.9 kB / 0.6546 GB, free: 6.996 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002954/0.1869, allocations: 294.7 kB / 0.6548 GB, free: 6.707 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005678/0.1874, allocations: 0.6097 MB / 0.6554 GB, free: 6.094 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001812/0.1893, allocations: 1.494 MB / 0.6569 GB, free: 4.594 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1893, allocations: 0 / 0.6569 GB, free: 4.594 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1893, allocations: 0 / 0.6569 GB, free: 4.594 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.1893, allocations: 0 / 0.6569 GB, free: 4.594 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.008157/0.1975, allocations: 2.527 MB / 0.6594 GB, free: 2.012 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.1975, allocations: 12.03 kB / 0.6594 GB, free: 2 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.1977, allocations: 126.5 kB / 0.6595 GB, free: 1.867 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004753/0.2025, allocations: 0.7679 MB / 0.6602 GB, free: 1.098 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.2039, allocations: 0.8016 MB / 0.661 GB, free: 244 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003409/0.2043, allocations: 260.2 kB / 0.6613 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00017/0.2045, allocations: 75.95 kB / 0.6613 GB, free: 15.88 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.2069, allocations: 1.176 MB / 0.6625 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.2069, allocations: 0 / 0.6625 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-05/0.207, allocations: 28 kB / 0.6625 GB, free: 14.65 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.991e-05/0.207, allocations: 16 kB / 0.6625 GB, free: 14.63 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.209, allocations: 0.9576 MB / 0.6635 GB, free: 13.68 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.006503/0.2155, allocations: 3.566 MB / 0.667 GB, free: 9.918 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007384/0.2229, allocations: 2.3 MB / 0.6692 GB, free: 7.527 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.2244, allocations: 0.6556 MB / 0.6698 GB, free: 6.867 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.2245, allocations: 24.56 kB / 0.6699 GB, free: 6.844 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.2245, allocations: 43.22 kB / 0.6699 GB, free: 6.793 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 3.056e-06/0.2246, allocations: 4 kB / 0.6699 GB, free: 6.789 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.02735/0.2519, allocations: 6.874 MB / 0.6766 GB, free: 15.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.2521, allocations: 93.77 kB / 0.6767 GB, free: 15.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001613/0.2537, allocations: 0.9657 MB / 0.6777 GB, free: 14.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/0.2539, allocations: 45.7 kB / 0.6777 GB, free: 14.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/0.2543, allocations: 461.4 kB / 0.6781 GB, free: 14.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004119/0.2548, allocations: 337.2 kB / 0.6785 GB, free: 13.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000489/0.2553, allocations: 255.5 kB / 0.6787 GB, free: 13.67 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2554, allocations: 309.1 kB / 0.679 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.2569, allocations: 0.6989 MB / 0.6797 GB, free: 12.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.2585, allocations: 0.9146 MB / 0.6806 GB, free: 11.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02134/0.2799, allocations: 5.057 MB / 0.6855 GB, free: 6.543 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.524e-05/0.28, allocations: 4 kB / 0.6855 GB, free: 6.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01299/0.293, allocations: 4.141 MB / 0.6896 GB, free: 2.383 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.293, allocations: 13.25 kB / 0.6896 GB, free: 2.371 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.2931, allocations: 4 kB / 0.6896 GB, free: 2.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00538/0.2985, allocations: 1.512 MB / 0.6911 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.2998, allocations: 259.6 kB / 0.6913 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01936/0.3192, allocations: 8.273 MB / 0.6994 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.321, allocations: 175.1 kB / 0.6995 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.3211, allocations: 55.98 kB / 0.6996 GB, free: 7.949 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.0007013/0.3219, allocations: 266.5 kB / 0.6999 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/0.3229, allocations: 345.9 kB / 0.7002 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/0.3347, allocations: 3.584 MB / 0.7037 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.46e-05/0.3348, allocations: 12 kB / 0.7037 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.3348, allocations: 11.94 kB / 0.7037 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.412e-05/0.3349, allocations: 7.969 kB / 0.7037 GB, free: 3.699 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.01509/0.3499, allocations: 5.135 MB / 0.7087 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.46e-05/0.35, allocations: 0 / 0.7087 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006746/0.3507, allocations: 111.9 kB / 0.7088 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00558/0.3563, allocations: 1.579 MB / 0.7104 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/0.3564, allocations: 20 kB / 0.7104 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02071/0.3772, allocations: 10.76 MB / 0.7209 GB, free: 1.637 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.3772, allocations: 3.938 kB / 0.7209 GB, free: 1.633 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/0.3921, allocations: 4.61 MB / 0.7254 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006235/0.3928, allocations: 212.1 kB / 0.7256 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.3929, allocations: 27.98 kB / 0.7256 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009996/0.3939, allocations: 79.91 kB / 0.7257 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006096/0.3946, allocations: 180.7 kB / 0.7259 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.347e-05/0.3946, allocations: 23.98 kB / 0.7259 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00101/0.3957, allocations: 0.6473 MB / 0.7265 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3957, allocations: 0 / 0.7265 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001521/0.3972, allocations: 435.7 kB / 0.727 GB, free: 11.38 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.01483/0.412, allocations: 5.212 MB / 0.732 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006366/0.4185, allocations: 2.304 MB / 0.7343 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4185, allocations: 0 / 0.7343 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004001/0.4225, allocations: 1.321 MB / 0.7356 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.4241, allocations: 347 kB / 0.7359 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0375/0.4617, allocations: 15.05 MB / 0.7506 GB, free: 2.785 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008092/0.4625, allocations: 1.073 MB / 0.7517 GB, free: 1.684 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004939/0.463, allocations: 99.33 kB / 0.7518 GB, free: 1.582 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006745/0.4637, allocations: 439.3 kB / 0.7522 GB, free: 1.152 MB / 0.545 GB Notification: Performance of SimCode: time 8.02e-07/0.4637, allocations: 192 / 0.7522 GB, free: 1.152 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4896/0.9533, allocations: 31.34 MB / 0.7828 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.62/19.57, allocations: 11.69 kB / 0.7828 GB, free: 117.1 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)