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.001508/0.001508, allocations: 109.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.001537/0.001537, allocations: 219.2 kB / 22.26 MB, free: 5.125 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.437/1.437, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] 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.002488/0.002488, allocations: 288.2 kB / 312.7 MB, free: 2.809 MB / 238.1 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 1.234/1.234, allocations: 180.6 MB / 0.5369 GB, free: 13.06 MB / 382.1 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: NcDataReader2 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: BuildingSystems 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.004822/0.004822, allocations: 103.1 kB / 0.7396 GB, free: 28.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1949, allocations: 95.38 MB / 0.8327 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003183/0.1981, allocations: 1.882 MB / 0.8346 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001098/0.1992, allocations: 0.5766 MB / 0.8351 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1993, allocations: 7.938 kB / 0.8351 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.1995, allocations: 31.67 kB / 0.8352 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 7.051e-05/0.1995, allocations: 23.75 kB / 0.8352 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.1998, allocations: 71.78 kB / 0.8353 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.2, allocations: 171.5 kB / 0.8354 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.2002, allocations: 42.05 kB / 0.8355 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 8.511e-05/0.2002, allocations: 51.78 kB / 0.8355 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.032e-05/0.2003, allocations: 67.58 kB / 0.8356 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.2004, allocations: 8 kB / 0.8356 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 2.035e-05/0.2004, allocations: 16 kB / 0.8356 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.455e-05/0.2004, allocations: 23.92 kB / 0.8356 GB, free: 5.684 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.2005, allocations: 71.53 kB / 0.8357 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.2007, allocations: 131.3 kB / 0.8358 GB, free: 5.484 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2007, allocations: 4 kB / 0.8358 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2007, allocations: 0 / 0.8358 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.2007, allocations: 0 / 0.8358 GB, free: 5.48 MB / 0.5762 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.0007085/0.2014, allocations: 419.2 kB / 0.8362 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2014, allocations: 13.34 kB / 0.8362 GB, free: 5.023 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.688e-05/0.2015, allocations: 46.67 kB / 0.8363 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.786e-05/0.2015, allocations: 28.8 kB / 0.8363 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.2018, allocations: 170.2 kB / 0.8365 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.2018, allocations: 12.38 kB / 0.8365 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.059e-05/0.2019, allocations: 16.36 kB / 0.8365 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003093/0.2022, allocations: 152.4 kB / 0.8366 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2022, allocations: 0 / 0.8366 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.2022, allocations: 4 kB / 0.8367 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2022, allocations: 4 kB / 0.8367 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002204/0.2024, allocations: 67.88 kB / 0.8367 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009221/0.2033, allocations: 0.7189 MB / 0.8374 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.2035, allocations: 50.55 kB / 0.8375 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2036, allocations: 28.84 kB / 0.8375 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.2036, allocations: 0 / 0.8375 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.2038, allocations: 138.6 kB / 0.8376 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.062e-06/0.2039, allocations: 0 / 0.8376 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.000467/0.2043, allocations: 161.4 kB / 0.8378 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.939e-05/0.2044, allocations: 136.5 kB / 0.8379 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/0.2046, allocations: 200 kB / 0.8381 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.2046, allocations: 29.95 kB / 0.8381 GB, free: 2.883 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.524e-05/0.2047, allocations: 128 kB / 0.8383 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.2048, allocations: 39.86 kB / 0.8383 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.229e-05/0.2048, allocations: 41.7 kB / 0.8383 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.205, allocations: 330.8 kB / 0.8387 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.2051, allocations: 31.98 kB / 0.8387 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.2053, allocations: 150.5 kB / 0.8388 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003174/0.2056, allocations: 206.3 kB / 0.839 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2056, allocations: 0 / 0.839 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003868/0.206, allocations: 201.6 kB / 0.8392 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.206, allocations: 14.03 kB / 0.8392 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.206, allocations: 4 kB / 0.8392 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.625e-05/0.2061, allocations: 4 kB / 0.8392 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.2062, allocations: 35.92 kB / 0.8393 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.2062, allocations: 7.984 kB / 0.8393 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.2063, allocations: 27.83 kB / 0.8393 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.2064, allocations: 16 kB / 0.8393 GB, free: 1.543 MB / 0.5762 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 0.0001184/0.2065, allocations: 138.3 kB / 0.8395 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.085e-05/0.2065, allocations: 15.91 kB / 0.8395 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.892e-05/0.2065, allocations: 25.39 kB / 0.8395 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2066, allocations: 0 / 0.8395 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2066, allocations: 4 kB / 0.8395 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.2066, allocations: 496 / 0.8395 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007365/0.2073, allocations: 0.4966 MB / 0.84 GB, free: 0.8047 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2073, allocations: 0 / 0.84 GB, free: 0.8047 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.2074, allocations: 19.98 kB / 0.84 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.2074, allocations: 4 kB / 0.84 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.2074, allocations: 0 / 0.84 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.2074, allocations: 7.938 kB / 0.84 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2074, allocations: 0 / 0.84 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.2079, allocations: 358.4 kB / 0.8404 GB, free: 412 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.424e-05/0.208, allocations: 27.8 kB / 0.8404 GB, free: 384 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.208, allocations: 4.031 kB / 0.8404 GB, free: 380 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.2082, allocations: 19.86 kB / 0.8404 GB, free: 360 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.2082, allocations: 15.98 kB / 0.8404 GB, free: 344 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2082, allocations: 4 kB / 0.8404 GB, free: 340 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001243/0.2083, allocations: 147.4 kB / 0.8406 GB, free: 192 kB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.2083, allocations: 0 / 0.8406 GB, free: 192 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000318/0.2086, allocations: 27.94 kB / 0.8406 GB, free: 164 kB / 0.5762 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.0008202/0.2095, allocations: 0.8929 MB / 0.8415 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003126/0.2098, allocations: 112.1 kB / 0.8416 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2098, allocations: 0 / 0.8416 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.2099, allocations: 47.91 kB / 0.8416 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005499/0.2105, allocations: 76.11 kB / 0.8417 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.2131, allocations: 2.278 MB / 0.8439 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.2134, allocations: 0.7164 MB / 0.8446 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.2e-05/0.2135, allocations: 25.47 kB / 0.8446 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.023e-05/0.2136, allocations: 47.42 kB / 0.8447 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of SimCode: time 3.81e-07/0.2136, allocations: 0 / 0.8447 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.2458, allocations: 4.257 MB / 0.8488 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.79, allocations: 11.52 kB / 0.8488 GB, free: 7.633 MB / 0.5919 GB " [Timeout remaining time 649] (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: 15.281312937997427] Failed to read output from testmodel.py, exit status != 0: 10.899118298999383 10.913897628 10.710206278 Calling exit ...