Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.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.0007936/0.0007936, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] 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.0008641/0.0008641, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.8661/0.8661, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001459/0.001459, allocations: 244.1 kB / 259.4 MB, free: 13.02 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6713/0.6713, allocations: 138.4 MB / 454.3 MB, free: 30.07 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 0.6463 GB, free: 1.871 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.982e-05/2.127e-05, allocations: 6.219 kB / 0.6463 GB, free: 1.863 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002362/0.002383, allocations: 1.81 MB / 0.6481 GB, free: 40 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.246/0.2484, allocations: 0.5371 MB / 0.6486 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.2485, allocations: 6.375 kB / 0.6486 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.2486, allocations: 28.11 kB / 0.6486 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 6.29e-05/0.2487, allocations: 27.91 kB / 0.6487 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002087/0.2489, allocations: 71.88 kB / 0.6487 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.2491, allocations: 172.9 kB / 0.6489 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.2492, allocations: 37.3 kB / 0.6489 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 9.297e-05/0.2493, allocations: 78.92 kB / 0.649 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.702e-05/0.2494, allocations: 42.77 kB / 0.649 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.688e-05/0.2494, allocations: 9.719 kB / 0.6491 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.489e-05/0.2494, allocations: 10.62 kB / 0.6491 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.537e-05/0.2494, allocations: 31.08 kB / 0.6491 GB, free: 55.79 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.096e-05/0.2495, allocations: 38.61 kB / 0.6491 GB, free: 55.78 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.2496, allocations: 136.2 kB / 0.6493 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2496, allocations: 3.938 kB / 0.6493 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2496, allocations: 0.5312 kB / 0.6493 GB, free: 55.76 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.2496, allocations: 1.5 kB / 0.6493 GB, free: 55.76 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004619/0.2501, allocations: 428.7 kB / 0.6497 GB, free: 55.43 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.2501, allocations: 12.45 kB / 0.6497 GB, free: 55.43 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.628e-05/0.2502, allocations: 40.41 kB / 0.6497 GB, free: 55.39 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.038e-05/0.2502, allocations: 22.7 kB / 0.6497 GB, free: 55.38 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.2504, allocations: 181.8 kB / 0.6499 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.2504, allocations: 5.438 kB / 0.6499 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.2504, allocations: 12.97 kB / 0.6499 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.2506, allocations: 152.7 kB / 0.6501 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2506, allocations: 0.9844 kB / 0.6501 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2507, allocations: 11.69 kB / 0.6501 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.2507, allocations: 2.438 kB / 0.6501 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.2508, allocations: 69.58 kB / 0.6502 GB, free: 55.15 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.2513, allocations: 0.6825 MB / 0.6508 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 8.645e-05/0.2514, allocations: 46.11 kB / 0.6509 GB, free: 54.55 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.64e-05/0.2515, allocations: 36.23 kB / 0.6509 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.2515, allocations: 3.719 kB / 0.6509 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001494/0.2516, allocations: 122.1 kB / 0.651 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=11): time 1.002e-06/0.2516, allocations: 0 / 0.651 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=11): time 0.0002846/0.2519, allocations: 173.2 kB / 0.6512 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.2519, allocations: 136 kB / 0.6513 GB, free: 54.25 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.252, allocations: 205 kB / 0.6515 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.2521, allocations: 32.67 kB / 0.6515 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.682e-05/0.2521, allocations: 132.6 kB / 0.6517 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.955e-05/0.2521, allocations: 34.97 kB / 0.6517 GB, free: 54 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.2522, allocations: 43.72 kB / 0.6517 GB, free: 53.98 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.278e-05/0.2522, allocations: 331.8 kB / 0.6521 GB, free: 53.66 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.37e-05/0.2523, allocations: 37.69 kB / 0.6521 GB, free: 53.66 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.811e-05/0.2523, allocations: 147.5 kB / 0.6522 GB, free: 53.53 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.2525, allocations: 203.6 kB / 0.6524 GB, free: 53.38 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2525, allocations: 3.938 kB / 0.6524 GB, free: 53.38 MB / 0.5573 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002058/0.2527, allocations: 212.9 kB / 0.6526 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.2527, allocations: 6.312 kB / 0.6526 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2527, allocations: 3.469 kB / 0.6527 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2527, allocations: 6.781 kB / 0.6527 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.606e-05/0.2528, allocations: 32.23 kB / 0.6527 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.2528, allocations: 10.02 kB / 0.6527 GB, free: 53.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.132e-05/0.2529, allocations: 29.8 kB / 0.6527 GB, free: 53.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.2529, allocations: 11.84 kB / 0.6527 GB, free: 53.3 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/0.2529, allocations: 142.2 kB / 0.6529 GB, free: 53.17 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/0.2529, allocations: 18.03 kB / 0.6529 GB, free: 53.16 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.625e-05/0.253, allocations: 19.58 kB / 0.6529 GB, free: 53.16 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.253, allocations: 1.75 kB / 0.6529 GB, free: 53.16 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.253, allocations: 3.094 kB / 0.6529 GB, free: 53.16 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.253, allocations: 2.688 kB / 0.6529 GB, free: 53.16 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.2533, allocations: 485 kB / 0.6534 GB, free: 52.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2534, allocations: 1.562 kB / 0.6534 GB, free: 52.82 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.288e-05/0.2534, allocations: 24.81 kB / 0.6534 GB, free: 52.81 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2534, allocations: 1.938 kB / 0.6534 GB, free: 52.81 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-06/0.2534, allocations: 2.125 kB / 0.6534 GB, free: 52.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.686e-06/0.2534, allocations: 6.219 kB / 0.6534 GB, free: 52.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2534, allocations: 1.844 kB / 0.6534 GB, free: 52.81 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.2537, allocations: 368.2 kB / 0.6538 GB, free: 52.54 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.489e-05/0.2537, allocations: 13.61 kB / 0.6538 GB, free: 52.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.2537, allocations: 2.469 kB / 0.6538 GB, free: 52.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.2538, allocations: 17.12 kB / 0.6538 GB, free: 52.53 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.2538, allocations: 18.7 kB / 0.6538 GB, free: 52.52 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-06/0.2538, allocations: 5.406 kB / 0.6538 GB, free: 52.52 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 5.806e-05/0.2539, allocations: 142 kB / 0.654 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.2539, allocations: 0 / 0.654 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001997/0.2541, allocations: 26.5 kB / 0.654 GB, free: 52.42 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000328/0.2544, allocations: 0.8969 MB / 0.6549 GB, free: 51.62 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001853/0.2546, allocations: 109.3 kB / 0.655 GB, free: 51.59 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2546, allocations: 2.938 kB / 0.655 GB, free: 51.59 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 7.302e-05/0.2547, allocations: 51.19 kB / 0.655 GB, free: 51.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.255, allocations: 70.86 kB / 0.6551 GB, free: 51.55 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.2562, allocations: 2.226 MB / 0.6573 GB, free: 49.75 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.645e-05/0.2563, allocations: 115.4 kB / 0.6574 GB, free: 49.67 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 5.056e-05/0.2564, allocations: 18.52 kB / 0.6574 GB, free: 49.67 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.278e-05/0.2564, allocations: 51.83 kB / 0.6574 GB, free: 49.64 MB / 0.5573 GB Notification: Performance of SimCode: time 5.21e-07/0.2564, allocations: 0 / 0.6574 GB, free: 49.64 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.016/0.2724, allocations: 4.945 MB / 0.6623 GB, free: 48.56 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.438/6.711, allocations: 3.969 kB / 0.6623 GB, free: 48.56 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.374266269616783] Failed to read output from testmodel.py, exit status != 0: 6.789084375835955 6.795956346 6.544686857 Calling exit ...