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.001742/0.001742, 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/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.002152/0.002152, allocations: 212.5 kB / 22.24 MB, free: 5.262 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.505/1.505, allocations: 230.6 MB / 256 MB, free: 7.805 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.002701/0.002701, allocations: 284.7 kB / 312.7 MB, free: 2.609 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.285/1.285, allocations: 180.6 MB / 0.5369 GB, free: 14.6 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: translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") [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.002908/0.002908, allocations: 108.7 kB / 0.74 GB, free: 27.7 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1649, allocations: 95.37 MB / 0.8331 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003114/0.168, allocations: 1.823 MB / 0.8349 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.1691, allocations: 0.5493 MB / 0.8354 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.035e-05/0.1692, allocations: 7.938 kB / 0.8355 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.1693, allocations: 19.73 kB / 0.8355 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 7.646e-05/0.1694, allocations: 31.72 kB / 0.8355 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.1696, allocations: 67.86 kB / 0.8356 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.1698, allocations: 171.4 kB / 0.8357 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.17, allocations: 37.75 kB / 0.8358 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1701, allocations: 55.8 kB / 0.8358 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.736e-05/0.1702, allocations: 51.64 kB / 0.8359 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.1702, allocations: 12 kB / 0.8359 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 2.237e-05/0.1702, allocations: 12 kB / 0.8359 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.463e-05/0.1703, allocations: 23.92 kB / 0.8359 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.679e-05/0.1703, allocations: 63.58 kB / 0.836 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.1705, allocations: 131.3 kB / 0.8361 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1705, allocations: 0 / 0.8361 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.193e-06/0.1705, allocations: 0 / 0.8361 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.1705, allocations: 4 kB / 0.8361 GB, free: 4.762 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.0007163/0.1712, allocations: 427.2 kB / 0.8365 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.1713, allocations: 9.938 kB / 0.8365 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.654e-05/0.1713, allocations: 24.8 kB / 0.8365 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.1716, allocations: 170.2 kB / 0.8367 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.1716, allocations: 16.36 kB / 0.8367 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.1717, allocations: 16.31 kB / 0.8367 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.172, allocations: 152.6 kB / 0.8369 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.172, allocations: 7.938 kB / 0.8369 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.172, allocations: 4 kB / 0.8369 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.172, allocations: 4 kB / 0.8369 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002207/0.1722, allocations: 71.88 kB / 0.837 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008596/0.1731, allocations: 0.6494 MB / 0.8376 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.1732, allocations: 54.48 kB / 0.8377 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.1733, allocations: 24.84 kB / 0.8377 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.1733, allocations: 8 kB / 0.8377 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.1736, allocations: 118.8 kB / 0.8378 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.1736, allocations: 0 / 0.8378 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0005022/0.1741, allocations: 169.6 kB / 0.838 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.891e-05/0.1742, allocations: 132.5 kB / 0.8381 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.1743, allocations: 192.7 kB / 0.8383 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.1744, allocations: 29.7 kB / 0.8383 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.816e-05/0.1745, allocations: 127.9 kB / 0.8384 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.1745, allocations: 39.86 kB / 0.8385 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.278e-05/0.1746, allocations: 41.7 kB / 0.8385 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1747, allocations: 326.8 kB / 0.8388 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1749, allocations: 43.91 kB / 0.8389 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.1751, allocations: 148.7 kB / 0.839 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.1755, allocations: 202.2 kB / 0.8392 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1755, allocations: 4 kB / 0.8392 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006231/0.1762, allocations: 201.2 kB / 0.8394 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1762, allocations: 4 kB / 0.8394 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1762, allocations: 4 kB / 0.8394 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.1762, allocations: 11.94 kB / 0.8394 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.1764, allocations: 36.67 kB / 0.8394 GB, free: 1.012 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.1764, allocations: 11.94 kB / 0.8394 GB, free: 1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.1766, allocations: 24.17 kB / 0.8395 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.1767, allocations: 12 kB / 0.8395 GB, free: 0.9648 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.0001726/0.1768, allocations: 146.3 kB / 0.8396 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.425e-05/0.1769, allocations: 15.91 kB / 0.8396 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.558e-05/0.1769, allocations: 17.41 kB / 0.8397 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.177, allocations: 3.984 kB / 0.8397 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.177, allocations: 4 kB / 0.8397 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.177, allocations: 0 / 0.8397 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.178, allocations: 453.3 kB / 0.8401 GB, free: 296 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.178, allocations: 0 / 0.8401 GB, free: 296 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.1782, allocations: 19.92 kB / 0.8401 GB, free: 276 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.1782, allocations: 3.984 kB / 0.8401 GB, free: 272 kB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.1782, allocations: 4 kB / 0.8401 GB, free: 268 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.1782, allocations: 0 / 0.8401 GB, free: 268 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.1782, allocations: 7.938 kB / 0.8401 GB, free: 260 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007845/0.179, allocations: 372.3 kB / 0.8405 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.293e-05/0.179, allocations: 19.84 kB / 0.8405 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.1791, allocations: 0 / 0.8405 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.1794, allocations: 16.03 kB / 0.8405 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.1794, allocations: 15.72 kB / 0.8405 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.1794, allocations: 8 kB / 0.8405 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001656/0.1796, allocations: 132.3 kB / 0.8407 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1796, allocations: 0 / 0.8407 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006347/0.1802, allocations: 32 kB / 0.8407 GB, free: 15.65 MB / 0.5919 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.0001392/0.1804, allocations: 99.25 kB / 0.8408 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004725/0.1809, allocations: 112.6 kB / 0.8409 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1809, allocations: 0 / 0.8409 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.1811, allocations: 52.03 kB / 0.8409 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009245/0.182, allocations: 74.39 kB / 0.841 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008415/0.1828, allocations: 356.3 kB / 0.8414 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/0.183, allocations: 108.3 kB / 0.8415 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.97e-05/0.1831, allocations: 17.81 kB / 0.8415 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.339e-05/0.1832, allocations: 19.42 kB / 0.8415 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of SimCode: time 4.81e-07/0.1832, allocations: 0 / 0.8415 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of Templates: time 0.008256/0.1914, allocations: 2.258 MB / 0.8437 GB, free: 12.56 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.207879466935992] Failed to read output from testmodel.py, exit status != 0: 0.19980456493794918 0.22023630500000002 0.046593693000000005 Calling exit ...