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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005887/0.005887, allocations: 99.83 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.634/2.634, allocations: 472.6 MB / 0.7453 GB, free: 436 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 64.14 kB / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8023/0.8035, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00291/0.8065, allocations: 1.82 MB / 1.227 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.8076, allocations: 0.531 MB / 1.228 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.8077, allocations: 7.938 kB / 1.228 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.8078, allocations: 27.72 kB / 1.228 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.724e-05/0.8079, allocations: 19.75 kB / 1.228 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002022/0.8081, allocations: 71.84 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002261/0.8084, allocations: 171.5 kB / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.8085, allocations: 61.56 kB / 1.228 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.458e-05/0.8086, allocations: 55.73 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.189e-05/0.8087, allocations: 51.7 kB / 1.228 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.8088, allocations: 12 kB / 1.228 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 2.286e-05/0.8088, allocations: 12 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.552e-05/0.8088, allocations: 31.84 kB / 1.228 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.897e-05/0.8089, allocations: 67.59 kB / 1.229 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.8091, allocations: 131.8 kB / 1.229 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.8091, allocations: 8 kB / 1.229 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.302e-06/0.8091, allocations: 0 / 1.229 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.792e-05/0.8091, allocations: 0 / 1.229 GB, free: 10.43 MB / 0.9512 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.0006862/0.8098, allocations: 474.5 kB / 1.229 GB, free: 9.922 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.8099, allocations: 12.03 kB / 1.229 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.398e-05/0.8099, allocations: 16.84 kB / 1.229 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.8102, allocations: 244.5 kB / 1.229 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.8102, allocations: 12.31 kB / 1.229 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.019e-05/0.8103, allocations: 16.33 kB / 1.229 GB, free: 9.59 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002904/0.8106, allocations: 152.2 kB / 1.23 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.8106, allocations: 4 kB / 1.23 GB, free: 9.418 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.8106, allocations: 8 kB / 1.23 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.8106, allocations: 0 / 1.23 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.8109, allocations: 71.88 kB / 1.23 GB, free: 9.34 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008802/0.8117, allocations: 0.7434 MB / 1.23 GB, free: 8.531 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.8119, allocations: 38.56 kB / 1.23 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.812, allocations: 36.83 kB / 1.23 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.812, allocations: 8.156 kB / 1.23 GB, free: 8.438 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.8123, allocations: 126.6 kB / 1.231 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.8123, allocations: 0 / 1.231 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0004788/0.8128, allocations: 169.6 kB / 1.231 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/0.8129, allocations: 136.5 kB / 1.231 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.813, allocations: 199 kB / 1.231 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.8131, allocations: 29.7 kB / 1.231 GB, free: 7.715 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.8132, allocations: 124 kB / 1.231 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.8132, allocations: 39.73 kB / 1.231 GB, free: 7.551 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.105e-05/0.8133, allocations: 45.72 kB / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.8134, allocations: 326.8 kB / 1.232 GB, free: 7.172 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.8136, allocations: 39.97 kB / 1.232 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.8137, allocations: 149 kB / 1.232 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.8141, allocations: 206.3 kB / 1.232 GB, free: 6.684 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.8141, allocations: 0 / 1.232 GB, free: 6.684 MB / 0.9512 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003958/0.8145, allocations: 217.3 kB / 1.232 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.8145, allocations: 4 kB / 1.232 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.8145, allocations: 7.938 kB / 1.232 GB, free: 6.453 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.8145, allocations: 8.5 kB / 1.232 GB, free: 6.445 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.8147, allocations: 35.92 kB / 1.232 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.8147, allocations: 7.984 kB / 1.232 GB, free: 6.402 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.8148, allocations: 27.88 kB / 1.232 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.8148, allocations: 8 kB / 1.232 GB, free: 6.367 MB / 0.9512 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.0001299/0.815, allocations: 141.6 kB / 1.232 GB, free: 6.219 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.815, allocations: 23.86 kB / 1.232 GB, free: 6.195 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.528e-05/0.8151, allocations: 21.39 kB / 1.232 GB, free: 6.164 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.8151, allocations: 4 kB / 1.232 GB, free: 6.16 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.8151, allocations: 4 kB / 1.232 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.8151, allocations: 0 / 1.232 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007264/0.8158, allocations: 0.5093 MB / 1.233 GB, free: 5.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.8158, allocations: 4 kB / 1.233 GB, free: 5.586 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.816, allocations: 15.98 kB / 1.233 GB, free: 5.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.816, allocations: 4 kB / 1.233 GB, free: 5.566 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.816, allocations: 8 kB / 1.233 GB, free: 5.559 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.816, allocations: 320 / 1.233 GB, free: 5.559 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.816, allocations: 3.938 kB / 1.233 GB, free: 5.555 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004895/0.8165, allocations: 372.1 kB / 1.233 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/0.8166, allocations: 92.95 kB / 1.233 GB, free: 5.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.8166, allocations: 8.031 kB / 1.233 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.8168, allocations: 11.98 kB / 1.233 GB, free: 5.039 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.8168, allocations: 19.92 kB / 1.233 GB, free: 5.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.8169, allocations: 4 kB / 1.233 GB, free: 5.016 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001023/0.817, allocations: 136.6 kB / 1.234 GB, free: 4.883 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.817, allocations: 7.938 kB / 1.234 GB, free: 4.875 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003408/0.8173, allocations: 31.95 kB / 1.234 GB, free: 4.844 MB / 0.9512 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.0001076/0.8174, allocations: 111.2 kB / 1.234 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003193/0.8178, allocations: 112.7 kB / 1.234 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8178, allocations: 4.062 kB / 1.234 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001458/0.8179, allocations: 47.91 kB / 1.234 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005462/0.8185, allocations: 57.67 kB / 1.234 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005463/0.819, allocations: 352 kB / 1.234 GB, free: 4.133 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.8193, allocations: 0.7284 MB / 1.235 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.203e-05/0.8194, allocations: 21.53 kB / 1.235 GB, free: 3.359 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.882e-05/0.8195, allocations: 19.44 kB / 1.235 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of SimCode: time 3.71e-07/0.8195, allocations: 0 / 1.235 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of Templates: time 0.004619/0.8241, allocations: 2.022 MB / 1.237 GB, free: 1.344 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches