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.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.001343/0.001343, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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 1.557/1.557, allocations: 230.6 MB / 252.7 MB, free: 14.25 MB / 206.1 MB " [Timeout remaining time 178] 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.001753/0.001753, allocations: 223.1 kB / 309.2 MB, free: 3.074 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL master/package.mo): time 0.681/0.681, allocations: 107.3 MB / 473 MB, free: 29.72 MB / 350.1 MB " [Timeout remaining time 179] Using package OpenIPSL with version 3.2.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL master/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_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"}) [Timeout 660] "Notification: OpenIPSL requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002575/0.002575, allocations: 88.58 kB / 0.6333 GB, free: 29.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1733, allocations: 80.17 MB / 0.7115 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007453/0.1807, allocations: 5.518 MB / 0.7169 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004246/0.185, allocations: 1.83 MB / 0.7187 GB, free: 156 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007009/0.1857, allocations: 8 kB / 0.7187 GB, free: 148 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005918/0.1863, allocations: 214.2 kB / 0.7189 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002047/0.1883, allocations: 0.7939 MB / 0.7197 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001356/0.1897, allocations: 0.5785 MB / 0.7203 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001683/0.1913, allocations: 1.382 MB / 0.7216 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003779/0.1917, allocations: 188.6 kB / 0.7218 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008148/0.1925, allocations: 0.6068 MB / 0.7224 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008513/0.1934, allocations: 0.7037 MB / 0.7231 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.1936, allocations: 104 kB / 0.7232 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000555/0.1941, allocations: 255.8 kB / 0.7234 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002677/0.1944, allocations: 290.8 kB / 0.7237 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004884/0.1949, allocations: 0.4972 MB / 0.7242 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00186/0.1967, allocations: 1.525 MB / 0.7257 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1968, allocations: 4 kB / 0.7257 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.555e-06/0.1968, allocations: 0 / 0.7257 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.539e-05/0.1968, allocations: 0 / 0.7257 GB, free: 8.992 MB / 0.4981 GB 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.008606/0.2054, allocations: 2.467 MB / 0.7281 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/0.2054, allocations: 12.03 kB / 0.7281 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.2056, allocations: 118.5 kB / 0.7282 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004879/0.2105, allocations: 0.7719 MB / 0.729 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.2121, allocations: 0.7449 MB / 0.7297 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004205/0.2125, allocations: 362.9 kB / 0.73 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.2127, allocations: 79.98 kB / 0.7301 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.2152, allocations: 1.176 MB / 0.7313 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.2153, allocations: 0 / 0.7313 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.114e-05/0.2153, allocations: 31.88 kB / 0.7313 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.2154, allocations: 20 kB / 0.7313 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002073/0.2174, allocations: 0.9382 MB / 0.7322 GB, free: 2.105 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 preOpt removeSimpleEquations (simulation): time 0.00638/0.2238, allocations: 2.744 MB / 0.7349 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007301/0.2311, allocations: 1.929 MB / 0.7368 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/0.2326, allocations: 0.597 MB / 0.7374 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-05/0.2327, allocations: 12.59 kB / 0.7374 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.2328, allocations: 51.19 kB / 0.7374 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=92): time 2.955e-06/0.2328, allocations: 0 / 0.7374 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=92): time 0.02848/0.2613, allocations: 6.689 MB / 0.744 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.2614, allocations: 97.7 kB / 0.7441 GB, free: 5.836 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.263, allocations: 0.9734 MB / 0.745 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002249/0.2632, allocations: 41.7 kB / 0.7451 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004217/0.2636, allocations: 465.4 kB / 0.7455 GB, free: 4.336 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004114/0.264, allocations: 329.2 kB / 0.7458 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004634/0.2645, allocations: 259.5 kB / 0.7461 GB, free: 3.75 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2646, allocations: 301.1 kB / 0.7463 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.2662, allocations: 0.6988 MB / 0.747 GB, free: 2.754 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.2679, allocations: 0.9146 MB / 0.7479 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02369/0.2916, allocations: 5.291 MB / 0.7531 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.08e-05/0.2916, allocations: 0 / 0.7531 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01401/0.3056, allocations: 4.118 MB / 0.7571 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.3057, allocations: 8 kB / 0.7571 GB, free: 8.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.3057, allocations: 8 kB / 0.7571 GB, free: 8.258 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005698/0.3114, allocations: 1.507 MB / 0.7586 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.3127, allocations: 259.6 kB / 0.7588 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/0.3334, allocations: 7.996 MB / 0.7667 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/0.3351, allocations: 179.1 kB / 0.7668 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.3352, allocations: 55.97 kB / 0.7669 GB, free: 14.14 MB / 0.545 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.0006591/0.3359, allocations: 263.9 kB / 0.7671 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/0.3369, allocations: 345.9 kB / 0.7675 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01234/0.3493, allocations: 3.557 MB / 0.7709 GB, free: 9.945 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.83e-05/0.3493, allocations: 12 kB / 0.7709 GB, free: 9.934 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.3493, allocations: 8 kB / 0.771 GB, free: 9.926 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.561e-05/0.3494, allocations: 3.984 kB / 0.771 GB, free: 9.922 MB / 0.545 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.01537/0.3647, allocations: 4.656 MB / 0.7755 GB, free: 5.203 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.3647, allocations: 4 kB / 0.7755 GB, free: 5.199 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006991/0.3654, allocations: 111.9 kB / 0.7756 GB, free: 5.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005776/0.3712, allocations: 1.575 MB / 0.7772 GB, free: 3.508 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/0.3713, allocations: 23.98 kB / 0.7772 GB, free: 3.484 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0208/0.3921, allocations: 10.38 MB / 0.7873 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.3921, allocations: 3.938 kB / 0.7873 GB, free: 8.809 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01524/0.4074, allocations: 4.579 MB / 0.7918 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005534/0.4079, allocations: 147.2 kB / 0.7919 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003995/0.4083, allocations: 20 kB / 0.7919 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.4096, allocations: 91.83 kB / 0.792 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006601/0.4103, allocations: 180.7 kB / 0.7922 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.738e-05/0.4103, allocations: 24 kB / 0.7922 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001026/0.4114, allocations: 0.6512 MB / 0.7929 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.4114, allocations: 0 / 0.7929 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001553/0.4129, allocations: 443.7 kB / 0.7933 GB, free: 2.652 MB / 0.5606 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.0157/0.4286, allocations: 5.177 MB / 0.7983 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006957/0.4356, allocations: 2.158 MB / 0.8004 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.4356, allocations: 0 / 0.8004 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004491/0.4401, allocations: 1.275 MB / 0.8017 GB, free: 9.965 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/0.4421, allocations: 345.1 kB / 0.802 GB, free: 9.617 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4307/0.8728, allocations: 14.98 MB / 0.8166 GB, free: 91.89 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000672/0.8734, allocations: 493.7 kB / 0.8171 GB, free: 91.78 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005272/0.874, allocations: 102.2 kB / 0.8172 GB, free: 91.77 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005875/0.8746, allocations: 441.2 kB / 0.8176 GB, free: 91.76 MB / 0.5762 GB Notification: Performance of SimCode: time 1.293e-06/0.8746, allocations: 0 / 0.8176 GB, free: 91.76 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07544/0.95, allocations: 34.39 MB / 0.8512 GB, free: 72.97 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16.39, allocations: 4 kB / 0.8512 GB, free: 72.96 MB / 0.5762 GB " [Timeout remaining time 643] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.422353795263916] Failed to read output from testmodel.py, exit status != 0: 16.534191142767668 16.554377657 16.353972539 Calling exit ...