Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008025/0.0008025, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.859/0.859, allocations: 177.1 MB / 199.4 MB, free: 5.949 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 160.6 kB / 256 MB, free: 13.36 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/package.mo): time 0.2715/0.2715, allocations: 80.24 MB / 392.6 MB, free: 3.613 MB / 362.7 MB " [Timeout remaining time 180] Using package OpenIPSL with version 3.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 0.5548 GB, free: 364 kB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.218e-06/1.047e-05, allocations: 2.281 kB / 0.5548 GB, free: 360 kB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004143/0.004154, allocations: 5.494 MB / 0.5602 GB, free: 10.84 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.006177, allocations: 1.83 MB / 0.562 GB, free: 9 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002629/0.00644, allocations: 15.94 kB / 0.562 GB, free: 8.984 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003248/0.006765, allocations: 206.1 kB / 0.5622 GB, free: 8.781 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00104/0.007805, allocations: 0.8052 MB / 0.563 GB, free: 7.977 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006552/0.00846, allocations: 0.595 MB / 0.5635 GB, free: 7.387 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008586/0.009319, allocations: 1.412 MB / 0.5649 GB, free: 5.969 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.009559, allocations: 196.2 kB / 0.5651 GB, free: 5.77 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007248/0.01028, allocations: 0.8259 MB / 0.5659 GB, free: 4.941 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004576/0.01074, allocations: 0.6113 MB / 0.5665 GB, free: 4.328 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.01084, allocations: 104 kB / 0.5666 GB, free: 4.227 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002687/0.01111, allocations: 251.7 kB / 0.5669 GB, free: 3.98 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.01127, allocations: 294.7 kB / 0.5671 GB, free: 3.691 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002482/0.01151, allocations: 422.5 kB / 0.5675 GB, free: 3.277 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009466/0.01246, allocations: 1.542 MB / 0.569 GB, free: 1.73 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.01246, allocations: 4 kB / 0.569 GB, free: 1.727 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.01246, allocations: 0 / 0.569 GB, free: 1.727 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.01248, allocations: 0 / 0.569 GB, free: 1.727 MB / 442.7 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.004052/0.01653, allocations: 2.463 MB / 0.5715 GB, free: 15.22 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.01656, allocations: 12.03 kB / 0.5715 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.01667, allocations: 122.4 kB / 0.5716 GB, free: 15.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002502/0.01917, allocations: 0.7679 MB / 0.5723 GB, free: 14.31 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007843/0.01995, allocations: 0.7334 MB / 0.573 GB, free: 13.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.02015, allocations: 363 kB / 0.5734 GB, free: 13.13 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.02025, allocations: 83.95 kB / 0.5735 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.02167, allocations: 1.173 MB / 0.5746 GB, free: 11.85 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.02168, allocations: 0 / 0.5746 GB, free: 11.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-05/0.02175, allocations: 36 kB / 0.5747 GB, free: 11.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.02176, allocations: 19.94 kB / 0.5747 GB, free: 11.79 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.02295, allocations: 0.942 MB / 0.5756 GB, free: 10.85 MB / 458.7 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.003302/0.02625, allocations: 2.737 MB / 0.5783 GB, free: 8.035 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003777/0.03003, allocations: 1.928 MB / 0.5801 GB, free: 6.082 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007717/0.0308, allocations: 0.5931 MB / 0.5807 GB, free: 5.484 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.744e-05/0.03087, allocations: 16.58 kB / 0.5807 GB, free: 5.469 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.03089, allocations: 47.22 kB / 0.5808 GB, free: 5.414 MB / 458.7 MB Notification: Performance of pre-optimization done (n=92): time 2.345e-06/0.03089, allocations: 0 / 0.5808 GB, free: 5.414 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.01409/0.04498, allocations: 6.689 MB / 0.5873 GB, free: 14.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.04504, allocations: 99.89 kB / 0.5874 GB, free: 14.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007497/0.04579, allocations: 0.9735 MB / 0.5884 GB, free: 13.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.373e-05/0.04585, allocations: 41.7 kB / 0.5884 GB, free: 13.55 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.04608, allocations: 461.4 kB / 0.5888 GB, free: 13.09 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001856/0.04626, allocations: 325.2 kB / 0.5892 GB, free: 12.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/0.04654, allocations: 247.5 kB / 0.5894 GB, free: 12.53 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.023e-05/0.04663, allocations: 365.8 kB / 0.5897 GB, free: 12.16 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008938/0.04752, allocations: 0.691 MB / 0.5904 GB, free: 11.47 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009714/0.04849, allocations: 0.8744 MB / 0.5913 GB, free: 10.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/0.06, allocations: 5.232 MB / 0.5964 GB, free: 5.254 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.06001, allocations: 0 / 0.5964 GB, free: 5.254 MB / 474.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.007053/0.06706, allocations: 4.071 MB / 0.6004 GB, free: 1.168 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.06708, allocations: 12 kB / 0.6004 GB, free: 1.156 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.06709, allocations: 4 kB / 0.6004 GB, free: 1.152 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002863/0.06995, allocations: 1.52 MB / 0.6019 GB, free: 15.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005531/0.07051, allocations: 239.7 kB / 0.6021 GB, free: 15.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/0.08184, allocations: 7.992 MB / 0.6099 GB, free: 7.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006445/0.08248, allocations: 171.3 kB / 0.6101 GB, free: 7.102 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.06e-05/0.08255, allocations: 55.97 kB / 0.6101 GB, free: 7.047 MB / 490.7 MB 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: 17 * 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 (144): * Single equations (assignments): 143 * 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 {(19,12,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003635/0.08292, allocations: 258.7 kB / 0.6104 GB, free: 6.785 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005181/0.08344, allocations: 341.4 kB / 0.6107 GB, free: 6.441 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006308/0.08974, allocations: 3.553 MB / 0.6141 GB, free: 2.875 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.08975, allocations: 15.94 kB / 0.6142 GB, free: 2.859 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.08976, allocations: 4 kB / 0.6142 GB, free: 2.855 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.08977, allocations: 11.97 kB / 0.6142 GB, free: 2.844 MB / 490.7 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 postOpt removeSimpleEquations (simulation): time 0.1847/0.2745, allocations: 4.656 MB / 0.6187 GB, free: 67.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/0.2745, allocations: 4.969 kB / 0.6187 GB, free: 67.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.2749, allocations: 109.9 kB / 0.6188 GB, free: 67.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003041/0.2779, allocations: 1.571 MB / 0.6204 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.84e-05/0.278, allocations: 20.14 kB / 0.6204 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.2886, allocations: 10.37 MB / 0.6305 GB, free: 62.11 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2887, allocations: 1.969 kB / 0.6305 GB, free: 62.11 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007449/0.2961, allocations: 4.583 MB / 0.635 GB, free: 60.89 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.2963, allocations: 140 kB / 0.6351 GB, free: 60.81 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.319e-05/0.2964, allocations: 16.25 kB / 0.6351 GB, free: 60.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.2968, allocations: 89.12 kB / 0.6352 GB, free: 60.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/0.2971, allocations: 186.1 kB / 0.6354 GB, free: 60.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.2971, allocations: 23.09 kB / 0.6354 GB, free: 60.73 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005218/0.2977, allocations: 0.6455 MB / 0.6361 GB, free: 60.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2977, allocations: 0.5469 kB / 0.6361 GB, free: 60.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009322/0.2986, allocations: 435.7 kB / 0.6365 GB, free: 60.4 MB / 490.7 MB 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.007549/0.3061, allocations: 5.182 MB / 0.6415 GB, free: 58.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.3091, allocations: 2.154 MB / 0.6436 GB, free: 57.82 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3091, allocations: 0 / 0.6436 GB, free: 57.82 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.3109, allocations: 1.261 MB / 0.6449 GB, free: 57.38 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007066/0.3116, allocations: 339.4 kB / 0.6452 GB, free: 57.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0172/0.3288, allocations: 14.7 MB / 0.6596 GB, free: 43.42 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.329, allocations: 497.8 kB / 0.66 GB, free: 42.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.3292, allocations: 97.59 kB / 0.6601 GB, free: 42.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.3295, allocations: 440.3 kB / 0.6605 GB, free: 42.37 MB / 490.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3295, allocations: 3.938 kB / 0.6605 GB, free: 42.37 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04795/0.3774, allocations: 34.52 MB / 0.6943 GB, free: 8.145 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.663/9.04, allocations: 0 / 0.6943 GB, free: 8.145 MB / 490.7 MB " [Timeout remaining time 651] (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.247390770353377] Failed to read output from testmodel.py, exit status != 0: 9.14513192512095 9.153098176 9.13912155 Calling exit ...