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.001545/0.001545, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001761/0.001761, allocations: 216.9 kB / 23.01 MB, free: 4.609 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.35/1.35, allocations: 230.6 MB / 256.8 MB, free: 8.043 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.002447/0.002447, allocations: 289.4 kB / 313.5 MB, free: 2.824 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.123/1.123, allocations: 180.6 MB / 0.5377 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: 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.002853/0.002853, allocations: 108.3 kB / 0.7408 GB, free: 27.87 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1745, allocations: 95.39 MB / 0.834 GB, free: 8.176 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003078/0.1776, allocations: 1.873 MB / 0.8358 GB, free: 6.293 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1787, allocations: 0.5805 MB / 0.8364 GB, free: 5.707 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.804e-05/0.1787, allocations: 11.94 kB / 0.8364 GB, free: 5.695 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.1789, allocations: 27.72 kB / 0.8364 GB, free: 5.668 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 6.837e-05/0.179, allocations: 19.75 kB / 0.8364 GB, free: 5.648 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.1792, allocations: 75.78 kB / 0.8365 GB, free: 5.574 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.000232/0.1794, allocations: 167.5 kB / 0.8367 GB, free: 5.41 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.1795, allocations: 41.75 kB / 0.8367 GB, free: 5.367 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 8.405e-05/0.1796, allocations: 55.73 kB / 0.8367 GB, free: 5.312 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 8.526e-05/0.1797, allocations: 59.64 kB / 0.8368 GB, free: 5.254 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.1797, allocations: 16 kB / 0.8368 GB, free: 5.238 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 1.979e-05/0.1797, allocations: 12 kB / 0.8368 GB, free: 5.227 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 4.073e-05/0.1798, allocations: 27.91 kB / 0.8369 GB, free: 5.199 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 7.724e-05/0.1799, allocations: 67.55 kB / 0.8369 GB, free: 5.133 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.18, allocations: 131.3 kB / 0.837 GB, free: 5.004 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1801, allocations: 4 kB / 0.8371 GB, free: 5 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1801, allocations: 0 / 0.8371 GB, free: 5 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.1801, allocations: 0 / 0.8371 GB, free: 5 MB / 0.5763 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.0007072/0.1808, allocations: 427.2 kB / 0.8375 GB, free: 4.547 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.1808, allocations: 9.344 kB / 0.8375 GB, free: 4.539 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.35e-05/0.1809, allocations: 28.8 kB / 0.8375 GB, free: 4.512 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.1812, allocations: 174.1 kB / 0.8377 GB, free: 4.316 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.1812, allocations: 12.38 kB / 0.8377 GB, free: 4.305 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.1812, allocations: 12.38 kB / 0.8377 GB, free: 4.293 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.1815, allocations: 147 kB / 0.8378 GB, free: 4.129 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1815, allocations: 0 / 0.8378 GB, free: 4.129 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.1815, allocations: 4 kB / 0.8378 GB, free: 4.125 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1815, allocations: 7.984 kB / 0.8378 GB, free: 4.117 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.1817, allocations: 75.75 kB / 0.8379 GB, free: 4.043 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008998/0.1826, allocations: 0.7073 MB / 0.8386 GB, free: 3.277 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.1828, allocations: 54.53 kB / 0.8387 GB, free: 3.215 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.825e-05/0.1829, allocations: 28.84 kB / 0.8387 GB, free: 3.184 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1829, allocations: 0 / 0.8387 GB, free: 3.184 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.1831, allocations: 142.5 kB / 0.8388 GB, free: 3.02 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=11): time 1.002e-06/0.1831, allocations: 0 / 0.8388 GB, free: 3.02 MB / 0.5763 GB Notification: Performance of matching and sorting (n=11): time 0.0004571/0.1836, allocations: 165.4 kB / 0.839 GB, free: 2.852 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.596e-05/0.1837, allocations: 136.5 kB / 0.8391 GB, free: 2.688 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.1839, allocations: 200 kB / 0.8393 GB, free: 2.48 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1839, allocations: 29.95 kB / 0.8393 GB, free: 2.445 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 9.137e-05/0.184, allocations: 128 kB / 0.8394 GB, free: 2.316 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 3.484e-05/0.184, allocations: 35.88 kB / 0.8395 GB, free: 2.281 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.789e-05/0.1841, allocations: 41.7 kB / 0.8395 GB, free: 2.234 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1842, allocations: 330.8 kB / 0.8398 GB, free: 1.902 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.1843, allocations: 31.98 kB / 0.8399 GB, free: 1.871 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1845, allocations: 154.5 kB / 0.84 GB, free: 1.668 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003291/0.1848, allocations: 202.4 kB / 0.8402 GB, free: 1.418 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1848, allocations: 0 / 0.8402 GB, free: 1.418 MB / 0.5763 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003818/0.1852, allocations: 201.6 kB / 0.8404 GB, free: 1.215 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1852, allocations: 12 kB / 0.8404 GB, free: 1.203 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1852, allocations: 4 kB / 0.8404 GB, free: 1.199 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1853, allocations: 4 kB / 0.8404 GB, free: 1.195 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.1854, allocations: 35.92 kB / 0.8405 GB, free: 1.16 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.1854, allocations: 11.98 kB / 0.8405 GB, free: 1.148 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.1855, allocations: 23.83 kB / 0.8405 GB, free: 1.125 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.1855, allocations: 16 kB / 0.8405 GB, free: 1.109 MB / 0.5763 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.0001177/0.1857, allocations: 139.3 kB / 0.8406 GB, free: 0.9648 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.1857, allocations: 15.91 kB / 0.8406 GB, free: 0.9492 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.1857, allocations: 25.39 kB / 0.8407 GB, free: 0.9219 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1857, allocations: 0 / 0.8407 GB, free: 0.9219 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1857, allocations: 4 kB / 0.8407 GB, free: 0.918 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1857, allocations: 0 / 0.8407 GB, free: 0.918 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000735/0.1865, allocations: 0.4888 MB / 0.8412 GB, free: 388 kB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1865, allocations: 0 / 0.8412 GB, free: 388 kB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.1866, allocations: 23.92 kB / 0.8412 GB, free: 364 kB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1866, allocations: 4.281 kB / 0.8412 GB, free: 360 kB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1866, allocations: 0 / 0.8412 GB, free: 360 kB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1866, allocations: 4 kB / 0.8412 GB, free: 356 kB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.1866, allocations: 3.938 kB / 0.8412 GB, free: 352 kB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004997/0.1871, allocations: 360.3 kB / 0.8415 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.658e-05/0.1872, allocations: 28.11 kB / 0.8416 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.1872, allocations: 7.969 kB / 0.8416 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.1873, allocations: 15.98 kB / 0.8416 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.1874, allocations: 19.92 kB / 0.8416 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.1874, allocations: 4 kB / 0.8416 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001205/0.1875, allocations: 151.3 kB / 0.8417 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.1875, allocations: 0 / 0.8417 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000313/0.1878, allocations: 24 kB / 0.8418 GB, free: 15.72 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.0001149/0.188, allocations: 103.2 kB / 0.8419 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003066/0.1883, allocations: 115.7 kB / 0.842 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1883, allocations: 0 / 0.842 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1884, allocations: 47.91 kB / 0.842 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.1889, allocations: 79.94 kB / 0.8421 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006093/0.1895, allocations: 390.2 kB / 0.8425 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.1899, allocations: 0.7164 MB / 0.8432 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.71e-05/0.1899, allocations: 23.44 kB / 0.8432 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of SimCode: time 2.9e-07/0.1899, allocations: 0 / 0.8432 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.003892/0.1938, allocations: 2.15 MB / 0.8453 GB, free: 12.06 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: 8.232519292039797] Failed to read output from testmodel.py, exit status != 0: 0.20129647012799978 0.21549641500000002 0.032615515000000005 Calling exit ...