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.0007316/0.0007316, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009907/0.001722, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007009/0.0007009, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008434/0.001544, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9732/0.9732, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09568/1.069, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.41/2.41, allocations: 446.7 MB / 0.6745 GB, free: 6.23 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2756/2.685, allocations: 145.9 MB / 0.817 GB, free: 4.227 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.232e-06/1.232e-06, allocations: 0 / 0.8183 GB, free: 2.906 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.121e-05/2.244e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.902 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002248/0.002271, allocations: 1.894 MB / 0.8202 GB, free: 0.9922 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0007411/0.003012, allocations: 0.5842 MB / 0.8207 GB, free: 412 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.152e-05/0.003093, allocations: 3.938 kB / 0.8207 GB, free: 408 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 8.323e-05/0.003177, allocations: 31.67 kB / 0.8208 GB, free: 376 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 5.102e-05/0.003228, allocations: 23.72 kB / 0.8208 GB, free: 352 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001353/0.003363, allocations: 71.8 kB / 0.8209 GB, free: 280 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.003534, allocations: 175.4 kB / 0.821 GB, free: 104 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.003645, allocations: 38.42 kB / 0.8211 GB, free: 68 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.003782, allocations: 95.78 kB / 0.8211 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.089e-05/0.003843, allocations: 39.83 kB / 0.8212 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.003868, allocations: 8 kB / 0.8212 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 1.477e-05/0.003883, allocations: 12 kB / 0.8212 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.577e-05/0.003908, allocations: 23.88 kB / 0.8212 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.861e-05/0.003947, allocations: 27.94 kB / 0.8213 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.00409, allocations: 95.47 kB / 0.8213 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.532e-05/0.004105, allocations: 0 / 0.8213 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.343e-06/0.004107, allocations: 4 kB / 0.8214 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.651e-05/0.004123, allocations: 4 kB / 0.8214 GB, free: 15.76 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.0004929/0.004616, allocations: 391.8 kB / 0.8217 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.768e-05/0.004644, allocations: 12.62 kB / 0.8217 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.908e-05/0.004683, allocations: 24.91 kB / 0.8218 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/0.004857, allocations: 161.4 kB / 0.8219 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.00487, allocations: 12.38 kB / 0.8219 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/0.004892, allocations: 20.36 kB / 0.8219 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001572/0.005049, allocations: 146 kB / 0.8221 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.005057, allocations: 192 / 0.8221 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.005067, allocations: 4.375 kB / 0.8221 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.005073, allocations: 7.938 kB / 0.8221 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.682e-05/0.00512, allocations: 31.92 kB / 0.8221 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000481/0.005601, allocations: 0.5631 MB / 0.8227 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.494e-05/0.005656, allocations: 34.5 kB / 0.8227 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.634e-05/0.005672, allocations: 8.859 kB / 0.8227 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.005693, allocations: 4 kB / 0.8227 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000115/0.005808, allocations: 107 kB / 0.8228 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.005809, allocations: 0 / 0.8228 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0001602/0.005969, allocations: 85.53 kB / 0.8229 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.00603, allocations: 136.5 kB / 0.823 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.89e-05/0.006128, allocations: 187.8 kB / 0.8232 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.006143, allocations: 37.95 kB / 0.8233 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.307e-05/0.006196, allocations: 123.8 kB / 0.8234 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.006216, allocations: 31.72 kB / 0.8234 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-05/0.006257, allocations: 49.64 kB / 0.8235 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.477e-05/0.006332, allocations: 334.7 kB / 0.8238 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.017e-05/0.006352, allocations: 11.98 kB / 0.8238 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.09e-05/0.006413, allocations: 116.6 kB / 0.8239 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.00652, allocations: 158.5 kB / 0.824 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.006524, allocations: 8 kB / 0.8241 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001331/0.006657, allocations: 137.3 kB / 0.8242 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.006671, allocations: 7.938 kB / 0.8242 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.006677, allocations: 4.734 kB / 0.8242 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.006689, allocations: 12 kB / 0.8242 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.232e-05/0.006771, allocations: 35.91 kB / 0.8242 GB, free: 12.49 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.006778, allocations: 8 kB / 0.8242 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.852e-05/0.006837, allocations: 19.89 kB / 0.8243 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.218e-06/0.006846, allocations: 11.98 kB / 0.8243 GB, free: 12.45 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 8.126e-05/0.006927, allocations: 133.7 kB / 0.8244 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.006945, allocations: 11.98 kB / 0.8244 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.392e-05/0.006979, allocations: 21.41 kB / 0.8244 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.006982, allocations: 4 kB / 0.8244 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.006984, allocations: 4 kB / 0.8244 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.006987, allocations: 0 / 0.8244 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.007288, allocations: 345.9 kB / 0.8248 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.00729, allocations: 0 / 0.8248 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.291e-05/0.007343, allocations: 23.92 kB / 0.8248 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.288e-05/0.007355, allocations: 11.91 kB / 0.8248 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.007358, allocations: 4 kB / 0.8248 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.007367, allocations: 0 / 0.8248 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.00737, allocations: 4 kB / 0.8248 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.007373, allocations: 3.938 kB / 0.8248 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.007529, allocations: 276.4 kB / 0.8251 GB, free: 11.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.007545, allocations: 8 kB / 0.8251 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.116e-05/0.007617, allocations: 7.984 kB / 0.8251 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.007653, allocations: 19.92 kB / 0.8251 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.007659, allocations: 3.984 kB / 0.8251 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.282e-05/0.007691, allocations: 48.8 kB / 0.8252 GB, free: 11.47 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007691, allocations: 0 / 0.8252 GB, free: 11.47 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001847/0.007876, allocations: 31.94 kB / 0.8252 GB, free: 11.44 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 9.106e-05/0.007967, allocations: 83.17 kB / 0.8253 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001016/0.008069, allocations: 76.64 kB / 0.8254 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.008074, allocations: 0 / 0.8254 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.735e-05/0.008111, allocations: 32.78 kB / 0.8254 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.008396, allocations: 80.55 kB / 0.8255 GB, free: 11.17 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005818/0.008978, allocations: 347.4 kB / 0.8258 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.289e-05/0.009021, allocations: 71.98 kB / 0.8259 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.173e-05/0.009073, allocations: 17.75 kB / 0.8259 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.864e-05/0.009161, allocations: 91.22 kB / 0.826 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of SimCode: time 7.11e-07/0.009162, allocations: 0 / 0.826 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of Templates: time 0.003916/0.01308, allocations: 2.256 MB / 0.8282 GB, free: 8.391 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 -ignoreHideResult -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.ref.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.302669522352517]