Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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.0009775/0.0009775, allocations: 80.81 kB / 19.94 MB, free: 4.539 MB / 18.57 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.001376/0.001376, allocations: 177 kB / 23.36 MB, free: 1.125 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 1.081/1.081, allocations: 177.2 MB / 203.8 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.423/2.423, allocations: 438.8 MB / 0.6827 GB, free: 13.59 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 0.8386 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.18e-05/2.312e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002253/0.002277, allocations: 1.829 MB / 0.8404 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0008579/0.003135, allocations: 0.5803 MB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.188e-05/0.003226, allocations: 7.938 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.003358, allocations: 23.73 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.181e-05/0.00342, allocations: 31.66 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.0036, allocations: 59.92 kB / 0.8411 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002025/0.003803, allocations: 179.4 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.003933, allocations: 38.38 kB / 0.8413 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.004041, allocations: 79.8 kB / 0.8413 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.283e-05/0.004104, allocations: 39.81 kB / 0.8414 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.004129, allocations: 12 kB / 0.8414 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 1.583e-05/0.004144, allocations: 12 kB / 0.8414 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 3.159e-05/0.004176, allocations: 31.84 kB / 0.8414 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.027e-05/0.004216, allocations: 39.91 kB / 0.8415 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.004353, allocations: 99.52 kB / 0.8416 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.004356, allocations: 0 / 0.8416 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of FrontEnd: time 7.41e-07/0.004357, allocations: 0 / 0.8416 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.004361, allocations: 4 kB / 0.8416 GB, free: 11.15 MB / 0.8073 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.0004713/0.004832, allocations: 372 kB / 0.8419 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.004867, allocations: 8.625 kB / 0.8419 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.004907, allocations: 20.92 kB / 0.842 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.005105, allocations: 181.4 kB / 0.8421 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.005118, allocations: 8.375 kB / 0.8421 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.005143, allocations: 16.38 kB / 0.8422 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.005301, allocations: 138.5 kB / 0.8423 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.005308, allocations: 4.188 kB / 0.8423 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.005319, allocations: 4.375 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.005326, allocations: 11.88 kB / 0.8423 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.525e-05/0.005371, allocations: 27.92 kB / 0.8423 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004989/0.00587, allocations: 0.567 MB / 0.8429 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.755e-05/0.005928, allocations: 30.56 kB / 0.8429 GB, free: 9.668 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.005949, allocations: 16.86 kB / 0.8429 GB, free: 9.648 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.005965, allocations: 0 / 0.8429 GB, free: 9.648 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001134/0.006078, allocations: 102.9 kB / 0.843 GB, free: 9.523 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 9.42e-07/0.006079, allocations: 0 / 0.843 GB, free: 9.523 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0001521/0.006231, allocations: 93.47 kB / 0.8431 GB, free: 9.426 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/0.006293, allocations: 132.5 kB / 0.8432 GB, free: 9.266 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.006402, allocations: 196.4 kB / 0.8434 GB, free: 9.062 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.006417, allocations: 29.95 kB / 0.8435 GB, free: 9.027 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.006478, allocations: 123.9 kB / 0.8436 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.006502, allocations: 39.67 kB / 0.8436 GB, free: 8.863 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-05/0.006544, allocations: 41.67 kB / 0.8437 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.047e-05/0.006624, allocations: 330.8 kB / 0.844 GB, free: 8.484 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.095e-05/0.006645, allocations: 11.98 kB / 0.844 GB, free: 8.473 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.438e-05/0.00671, allocations: 115.6 kB / 0.8441 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.006817, allocations: 154.4 kB / 0.8442 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.00682, allocations: 0 / 0.8442 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001317/0.006952, allocations: 141.2 kB / 0.8444 GB, free: 7.961 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.006969, allocations: 15.88 kB / 0.8444 GB, free: 7.945 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.006977, allocations: 4.5 kB / 0.8444 GB, free: 7.941 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.006991, allocations: 4 kB / 0.8444 GB, free: 7.938 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.657e-05/0.007067, allocations: 35.98 kB / 0.8444 GB, free: 7.902 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.007074, allocations: 15.91 kB / 0.8444 GB, free: 7.887 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.707e-05/0.007131, allocations: 20.12 kB / 0.8445 GB, free: 7.867 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.007141, allocations: 12 kB / 0.8445 GB, free: 7.855 MB / 0.8073 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,intNoReset.trigger_internal,intDef.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 6.953e-05/0.00721, allocations: 125.8 kB / 0.8446 GB, free: 7.723 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/0.007228, allocations: 15.98 kB / 0.8446 GB, free: 7.707 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.007259, allocations: 25.39 kB / 0.8446 GB, free: 7.688 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.007261, allocations: 0 / 0.8446 GB, free: 7.688 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.007264, allocations: 4 kB / 0.8446 GB, free: 7.684 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.007268, allocations: 4 kB / 0.8446 GB, free: 7.68 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003086/0.007576, allocations: 349.8 kB / 0.845 GB, free: 7.312 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.007579, allocations: 4 kB / 0.845 GB, free: 7.309 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.82e-05/0.007627, allocations: 19.86 kB / 0.845 GB, free: 7.289 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.00763, allocations: 4 kB / 0.845 GB, free: 7.285 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.007641, allocations: 320 / 0.845 GB, free: 7.285 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.007643, allocations: 0 / 0.845 GB, free: 7.285 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.007646, allocations: 8 kB / 0.845 GB, free: 7.277 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001685/0.007814, allocations: 280.3 kB / 0.8453 GB, free: 6.98 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.812e-05/0.007832, allocations: 23.84 kB / 0.8453 GB, free: 6.957 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.007847, allocations: 0 / 0.8453 GB, free: 6.957 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.327e-05/0.00792, allocations: 11.98 kB / 0.8453 GB, free: 6.945 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.007956, allocations: 11.98 kB / 0.8453 GB, free: 6.934 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.007961, allocations: 0 / 0.8453 GB, free: 6.934 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.493e-05/0.007996, allocations: 52.8 kB / 0.8454 GB, free: 6.879 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007996, allocations: 0 / 0.8454 GB, free: 6.879 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001799/0.008176, allocations: 27.98 kB / 0.8454 GB, free: 6.852 MB / 0.8073 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.0001007/0.008277, allocations: 88.3 kB / 0.8455 GB, free: 6.758 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001098/0.008387, allocations: 80.55 kB / 0.8456 GB, free: 6.676 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.008391, allocations: 0 / 0.8456 GB, free: 6.676 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.301e-05/0.008434, allocations: 36.77 kB / 0.8456 GB, free: 6.637 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.008736, allocations: 59.14 kB / 0.8457 GB, free: 6.582 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004232/0.009159, allocations: 323.5 kB / 0.846 GB, free: 6.227 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.565e-05/0.009205, allocations: 71.98 kB / 0.846 GB, free: 6.137 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.407e-05/0.009249, allocations: 17.75 kB / 0.846 GB, free: 6.121 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.752e-05/0.009336, allocations: 91.22 kB / 0.8461 GB, free: 6.031 MB / 0.8073 GB Notification: Performance of SimCode: time 1.022e-06/0.009337, allocations: 0 / 0.8461 GB, free: 6.031 MB / 0.8073 GB Notification: Performance of Templates: time 0.003989/0.01333, allocations: 2.224 MB / 0.8483 GB, free: 3.867 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.53344109794125]