Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.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.001456/0.001456, allocations: 114.6 kB / 19.7 MB, free: 2.039 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.00128/0.00128, allocations: 193.2 kB / 22.98 MB, free: 4.969 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.335/1.335, allocations: 225.6 MB / 251.8 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8922/0.8922, allocations: 149.6 MB / 456.6 MB, free: 1.148 MB / 350.1 MB
"
[Timeout remaining time 179]
Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: translateModel(IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset")
translateModel(IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 66.58 kB / 0.6329 GB, free: 8.926 MB / 462.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1813, allocations: 87.88 MB / 0.7187 GB, free: 0.9609 MB / 0.5294 GB
Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.003083/0.1843, allocations: 1.824 MB / 0.7205 GB, free: 15.13 MB / 0.545 GB
Notification: Performance of NFInst.instExpressions: time 0.0009609/0.1853, allocations: 0.5455 MB / 0.721 GB, free: 14.58 MB / 0.545 GB
Notification: Performance of NFInst.updateImplicitVariability: time 9.016e-05/0.1854, allocations: 11.88 kB / 0.721 GB, free: 14.57 MB / 0.545 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.1855, allocations: 23.73 kB / 0.721 GB, free: 14.54 MB / 0.545 GB
Notification: Performance of NFTyping.typeBindings: time 7.047e-05/0.1856, allocations: 31.72 kB / 0.721 GB, free: 14.51 MB / 0.545 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.1858, allocations: 71.78 kB / 0.7211 GB, free: 14.44 MB / 0.545 GB
Notification: Performance of NFFlatten.flatten: time 0.0002284/0.1861, allocations: 171.5 kB / 0.7213 GB, free: 14.27 MB / 0.545 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.1862, allocations: 41.78 kB / 0.7213 GB, free: 14.23 MB / 0.545 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.29e-05/0.1863, allocations: 55.72 kB / 0.7214 GB, free: 14.18 MB / 0.545 GB
Notification: Performance of NFSimplifyModel.simplify: time 9.127e-05/0.1864, allocations: 63.69 kB / 0.7214 GB, free: 14.12 MB / 0.545 GB
Notification: Performance of NFPackage.collectConstants: time 2.602e-05/0.1864, allocations: 8 kB / 0.7214 GB, free: 14.11 MB / 0.545 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.917e-05/0.1864, allocations: 12 kB / 0.7215 GB, free: 14.1 MB / 0.545 GB
Notification: Performance of NFScalarize.scalarize: time 3.491e-05/0.1864, allocations: 27.86 kB / 0.7215 GB, free: 14.07 MB / 0.545 GB
Notification: Performance of NFVerifyModel.verify: time 6.949e-05/0.1865, allocations: 67.59 kB / 0.7215 GB, free: 14 MB / 0.545 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001833/0.1867, allocations: 135.3 kB / 0.7217 GB, free: 13.87 MB / 0.545 GB
Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1867, allocations: 0 / 0.7217 GB, free: 13.87 MB / 0.545 GB
Notification: Performance of FrontEnd: time 1.292e-06/0.1867, allocations: 0 / 0.7217 GB, free: 13.87 MB / 0.545 GB
Notification: Performance of Transformations before backend: time 9.759e-06/0.1867, allocations: 0 / 0.7217 GB, free: 13.87 MB / 0.545 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.0007271/0.1874, allocations: 435.1 kB / 0.7221 GB, free: 13.41 MB / 0.545 GB
Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1875, allocations: 12.62 kB / 0.7221 GB, free: 13.4 MB / 0.545 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.483e-05/0.1875, allocations: 20.8 kB / 0.7221 GB, free: 13.38 MB / 0.545 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.1878, allocations: 170.2 kB / 0.7223 GB, free: 13.19 MB / 0.545 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.1878, allocations: 12.38 kB / 0.7223 GB, free: 13.18 MB / 0.545 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.1878, allocations: 12.38 kB / 0.7223 GB, free: 13.16 MB / 0.545 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.1881, allocations: 150.2 kB / 0.7224 GB, free: 13 MB / 0.545 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1881, allocations: 0 / 0.7224 GB, free: 13 MB / 0.545 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.1882, allocations: 4 kB / 0.7225 GB, free: 12.99 MB / 0.545 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.1882, allocations: 4 kB / 0.7225 GB, free: 12.99 MB / 0.545 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.1884, allocations: 75.88 kB / 0.7225 GB, free: 12.91 MB / 0.545 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000884/0.1893, allocations: 0.7073 MB / 0.7232 GB, free: 12.15 MB / 0.545 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.1894, allocations: 46.56 kB / 0.7233 GB, free: 12.09 MB / 0.545 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.1895, allocations: 32.77 kB / 0.7233 GB, free: 12.06 MB / 0.545 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.1895, allocations: 4 kB / 0.7233 GB, free: 12.05 MB / 0.545 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.1897, allocations: 126.8 kB / 0.7234 GB, free: 11.91 MB / 0.545 GB
Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.1897, allocations: 0 / 0.7234 GB, free: 11.91 MB / 0.545 GB
Notification: Performance of matching and sorting (n=11): time 0.0004866/0.1902, allocations: 169.4 kB / 0.7236 GB, free: 11.73 MB / 0.545 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.437e-05/0.1903, allocations: 140.7 kB / 0.7237 GB, free: 11.57 MB / 0.545 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.1905, allocations: 195 kB / 0.7239 GB, free: 11.36 MB / 0.545 GB
Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.1905, allocations: 29.7 kB / 0.7239 GB, free: 11.32 MB / 0.545 GB
Notification: Performance of collectInitialEqns (initialization): time 9.101e-05/0.1906, allocations: 139.7 kB / 0.7241 GB, free: 11.18 MB / 0.545 GB
Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.1907, allocations: 35.69 kB / 0.7241 GB, free: 11.15 MB / 0.545 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.563e-05/0.1907, allocations: 41.7 kB / 0.7241 GB, free: 11.1 MB / 0.545 GB
Notification: Performance of setup shared object (initialization): time 0.0001407/0.1909, allocations: 322.8 kB / 0.7244 GB, free: 10.78 MB / 0.545 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.191, allocations: 47.97 kB / 0.7245 GB, free: 10.73 MB / 0.545 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.1912, allocations: 142.5 kB / 0.7246 GB, free: 10.54 MB / 0.545 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.1915, allocations: 206.7 kB / 0.7248 GB, free: 10.29 MB / 0.545 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1915, allocations: 0 / 0.7248 GB, free: 10.29 MB / 0.545 GB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003907/0.1919, allocations: 221.3 kB / 0.725 GB, free: 10.06 MB / 0.545 GB
Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.1919, allocations: 4 kB / 0.725 GB, free: 10.06 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1919, allocations: 4 kB / 0.725 GB, free: 10.05 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.1919, allocations: 8 kB / 0.7251 GB, free: 10.05 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.192, allocations: 31.92 kB / 0.7251 GB, free: 10.02 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.192, allocations: 4 kB / 0.7251 GB, free: 10.01 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.1922, allocations: 36.14 kB / 0.7251 GB, free: 9.977 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.1922, allocations: 8 kB / 0.7251 GB, free: 9.969 MB / 0.545 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.0001158/0.1923, allocations: 142.3 kB / 0.7253 GB, free: 9.82 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.1923, allocations: 15.91 kB / 0.7253 GB, free: 9.805 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.1924, allocations: 21.39 kB / 0.7253 GB, free: 9.785 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1924, allocations: 4 kB / 0.7253 GB, free: 9.781 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.1924, allocations: 0 / 0.7253 GB, free: 9.781 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1924, allocations: 0 / 0.7253 GB, free: 9.781 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007566/0.1932, allocations: 0.4927 MB / 0.7258 GB, free: 9.238 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.1932, allocations: 3.984 kB / 0.7258 GB, free: 9.234 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.1933, allocations: 15.98 kB / 0.7258 GB, free: 9.219 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1933, allocations: 0 / 0.7258 GB, free: 9.219 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.1933, allocations: 4 kB / 0.7258 GB, free: 9.215 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1933, allocations: 0 / 0.7258 GB, free: 9.215 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1933, allocations: 3.938 kB / 0.7258 GB, free: 9.211 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/0.1938, allocations: 364.3 kB / 0.7262 GB, free: 8.832 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.692e-05/0.1938, allocations: 15.86 kB / 0.7262 GB, free: 8.816 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.1938, allocations: 8 kB / 0.7262 GB, free: 8.809 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.194, allocations: 16.02 kB / 0.7262 GB, free: 8.793 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.194, allocations: 15.92 kB / 0.7262 GB, free: 8.777 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.1941, allocations: 11.94 kB / 0.7262 GB, free: 8.766 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.0001115/0.1942, allocations: 140.4 kB / 0.7264 GB, free: 8.629 MB / 0.545 GB
Notification: Performance of sort global known variables: time 8e-08/0.1942, allocations: 0 / 0.7264 GB, free: 8.629 MB / 0.545 GB
Notification: Performance of remove unused functions: time 0.0003165/0.1945, allocations: 28 kB / 0.7264 GB, free: 8.602 MB / 0.545 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.0001317/0.1946, allocations: 113.7 kB / 0.7265 GB, free: 8.484 MB / 0.545 GB
Notification: Performance of simCode: created initialization part: time 0.0003057/0.1949, allocations: 103.8 kB / 0.7266 GB, free: 8.383 MB / 0.545 GB
Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1949, allocations: 5 kB / 0.7266 GB, free: 8.379 MB / 0.545 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1951, allocations: 44.03 kB / 0.7266 GB, free: 8.336 MB / 0.545 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004987/0.1956, allocations: 75.48 kB / 0.7267 GB, free: 8.27 MB / 0.545 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005711/0.1961, allocations: 360.4 kB / 0.7271 GB, free: 7.879 MB / 0.545 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.1965, allocations: 0.7281 MB / 0.7278 GB, free: 7.125 MB / 0.545 GB
Notification: Performance of simCode: alias equations: time 6.471e-05/0.1966, allocations: 17.47 kB / 0.7278 GB, free: 7.109 MB / 0.545 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.051e-05/0.1966, allocations: 19.44 kB / 0.7278 GB, free: 7.09 MB / 0.545 GB
Notification: Performance of SimCode: time 3.2e-07/0.1966, allocations: 0 / 0.7278 GB, free: 7.09 MB / 0.545 GB
Notification: Performance of Templates: time 0.005072/0.2017, allocations: 2.107 MB / 0.7299 GB, free: 5.004 MB / 0.545 GB
"
[Timeout remaining time 660]
make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 660]
(rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset  -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.26388715300709]
Failed to read output from testmodel.py, exit status != 0:
0.2096760580316186 0.22365796199999996 0.034069719000000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f7ab96957b0>