Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 105.8 kB / 17.12 MB, free: 5.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 197.4 kB / 20.07 MB, free: 3.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 245.8 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.174/0.174, allocations: 8.086 MB / 306 MB, free: 2.641 MB / 238.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 71.83 kB / 422.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2482, allocations: 51.52 MB / 474.2 MB, free: 21.94 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002284/0.2506, allocations: 1.45 MB / 475.7 MB, free: 20.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.252, allocations: 1.437 MB / 477.1 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.737e-05/0.2521, allocations: 10.5 kB / 477.1 MB, free: 19.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.2525, allocations: 110.1 kB / 477.2 MB, free: 19.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003677/0.2528, allocations: 161.8 kB / 477.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.2541, allocations: 0.9001 MB / 478.3 MB, free: 18.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002615/0.2544, allocations: 197 kB / 478.5 MB, free: 18.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.2546, allocations: 53.58 kB / 478.5 MB, free: 18.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.699e-05/0.2546, allocations: 74.78 kB / 478.6 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.2548, allocations: 109.9 kB / 478.7 MB, free: 18.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.264e-05/0.2548, allocations: 15.34 kB / 478.7 MB, free: 18.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003573/0.2552, allocations: 227.2 kB / 478.9 MB, free: 18.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.993e-05/0.2553, allocations: 42.36 kB / 479 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.614e-05/0.2553, allocations: 93.7 kB / 479.1 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004126/0.2558, allocations: 357.9 kB / 479.4 MB, free: 18.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2558, allocations: 1.281 kB / 479.4 MB, free: 18.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2558, allocations: 0 / 479.4 MB, free: 18.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2558, allocations: 0 / 479.4 MB, free: 18.1 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001808/0.2576, allocations: 0.7104 MB / 480.1 MB, free: 17.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2577, allocations: 14.14 kB / 480.2 MB, free: 17.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.43e-05/0.2577, allocations: 51.86 kB / 480.2 MB, free: 17.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.007e-05/0.2578, allocations: 24.11 kB / 480.2 MB, free: 17.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.258, allocations: 228.8 kB / 480.5 MB, free: 17.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.069e-05/0.2581, allocations: 80.86 kB / 480.5 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.2581, allocations: 14.72 kB / 480.5 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.2585, allocations: 224 kB / 480.8 MB, free: 16.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2585, allocations: 9.25 kB / 480.8 MB, free: 16.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.174e-05/0.2585, allocations: 4.875 kB / 480.8 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2585, allocations: 4.531 kB / 480.8 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.2589, allocations: 197 kB / 481 MB, free: 16.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.2601, allocations: 0.9125 MB / 481.9 MB, free: 16.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000524/0.2606, allocations: 238 kB / 482.1 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.2608, allocations: 114.5 kB / 482.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.2609, allocations: 93.98 kB / 482.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003464/0.2613, allocations: 170.1 kB / 482.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.393e-06/0.2613, allocations: 4 kB / 482.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001613/0.2629, allocations: 0.6026 MB / 483.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.353e-05/0.263, allocations: 57.41 kB / 483.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.2631, allocations: 181.4 kB / 483.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.2631, allocations: 30.83 kB / 483.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/0.2632, allocations: 127.5 kB / 483.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.234e-05/0.2632, allocations: 84.98 kB / 483.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.45e-05/0.2633, allocations: 59.28 kB / 483.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.612e-05/0.2634, allocations: 325.7 kB / 483.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.2636, allocations: 118.7 kB / 484.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.2638, allocations: 160.4 kB / 484.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003764/0.2642, allocations: 274 kB / 484.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2642, allocations: 3.938 kB / 484.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009567/0.2651, allocations: 481.2 kB / 485 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.2652, allocations: 5.875 kB / 485 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2652, allocations: 1.188 kB / 485 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008837/0.2661, allocations: 200.2 kB / 485.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.2662, allocations: 36.48 kB / 485.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005398/0.2668, allocations: 0.7239 MB / 485.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.267, allocations: 26.62 kB / 485.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.267, allocations: 12.41 kB / 486 MB, free: 13.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (load.degradedMode,$PRE.load.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.2671, allocations: 139.4 kB / 486.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.2672, allocations: 15.91 kB / 486.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000705/0.2679, allocations: 387.2 kB / 486.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.391e-06/0.2679, allocations: 2.125 kB / 486.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2679, allocations: 0.9688 kB / 486.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.2679, allocations: 3.984 kB / 486.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.2682, allocations: 346 kB / 486.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2682, allocations: 0 / 486.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.2683, allocations: 31.11 kB / 486.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007332/0.269, allocations: 201.9 kB / 487.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.2691, allocations: 5.438 kB / 487.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005856/0.2697, allocations: 0.7321 MB / 487.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.2697, allocations: 7.938 kB / 487.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005841/0.2703, allocations: 371.8 kB / 488.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.2703, allocations: 94.45 kB / 488.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/0.2704, allocations: 13.3 kB / 488.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.2705, allocations: 13.44 kB / 488.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/0.2706, allocations: 24.08 kB / 488.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.2706, allocations: 9.5 kB / 488.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001008/0.2707, allocations: 134.9 kB / 488.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2707, allocations: 0 / 488.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000296/0.271, allocations: 64.02 kB / 488.5 MB, free: 11.01 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,load.degradedMode) * Number of discrete states: 1 (load.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008168/0.2718, allocations: 0.9243 MB / 489.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007077/0.2726, allocations: 309.2 kB / 489.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2726, allocations: 0 / 489.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000493/0.2731, allocations: 177.2 kB / 489.9 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002419/0.2733, allocations: 21.45 kB / 489.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003393/0.2767, allocations: 2.63 MB / 492.6 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.2769, allocations: 0.7239 MB / 493.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.481e-05/0.277, allocations: 24.22 kB / 493.3 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.938e-05/0.2771, allocations: 49.2 kB / 493.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2771, allocations: 3.938 kB / 493.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02785/0.3049, allocations: 5.806 MB / 499.2 MB, free: 2.973 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.53, allocations: 3.984 kB / 499.2 MB, free: 2.969 MB / 350.1 MB " [Timeout remaining time 648] (rm -f PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads_res.csv --start-time 0 --stop-time 400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.16 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.025246570934542] Failed to read output from testmodel.py, exit status != 0: 11.621295112068765 11.645002233 11.385009346 Calling exit ...