Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001114/0.001113, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.386/1.386, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.602/2.602, allocations: 437.8 MB / 0.7128 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004203/0.0004205, allocations: 8 kB / 0.8735 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.658/0.6585, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002221/0.6607, allocations: 1.519 MB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.6618, allocations: 0.526 MB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.6619, allocations: 7.938 kB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.6621, allocations: 23.78 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.6622, allocations: 15.88 kB / 1.026 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.6625, allocations: 63.86 kB / 1.026 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.6627, allocations: 159.4 kB / 1.026 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.6629, allocations: 49.64 kB / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.404e-05/0.663, allocations: 39.78 kB / 1.026 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.762e-05/0.6631, allocations: 51.66 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.6631, allocations: 7.938 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.082e-05/0.6632, allocations: 4 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.471e-05/0.6632, allocations: 23.86 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.123e-05/0.6633, allocations: 81.31 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.6634, allocations: 89.72 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.6634, allocations: 4 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.784e-06/0.6634, allocations: 0 / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.6635, allocations: 0 / 1.026 GB, free: 13.21 MB / 0.7794 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.0007434/0.6642, allocations: 458.8 kB / 1.027 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.6643, allocations: 8.031 kB / 1.027 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.104e-05/0.6643, allocations: 16.75 kB / 1.027 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.6646, allocations: 236.4 kB / 1.027 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.6646, allocations: 12.23 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.6647, allocations: 20.36 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.665, allocations: 150.2 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.665, allocations: 3.938 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.665, allocations: 0 / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.6651, allocations: 8 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.6653, allocations: 83.88 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009615/0.6663, allocations: 0.7431 MB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.6665, allocations: 50.56 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.6666, allocations: 36.83 kB / 1.028 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.6666, allocations: 4 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002983/0.6669, allocations: 142.6 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.905e-06/0.6669, allocations: 0 / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0005247/0.6675, allocations: 185.5 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.6675, allocations: 132.5 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.6677, allocations: 198.9 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.6678, allocations: 33.7 kB / 1.029 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.635e-05/0.6679, allocations: 132.1 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.6679, allocations: 35.52 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.6679, allocations: 25.7 kB / 1.029 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.6681, allocations: 326.8 kB / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.6682, allocations: 43.97 kB / 1.029 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.6684, allocations: 157.2 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.6687, allocations: 214.4 kB / 1.03 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6688, allocations: 4 kB / 1.03 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004238/0.6692, allocations: 213 kB / 1.03 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.6692, allocations: 10.34 kB / 1.03 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.6692, allocations: 8.484 kB / 1.03 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.6693, allocations: 8 kB / 1.03 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.6694, allocations: 39.92 kB / 1.03 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.6694, allocations: 4 kB / 1.03 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.6696, allocations: 31.83 kB / 1.03 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.6696, allocations: 8 kB / 1.03 GB, free: 9.098 MB / 0.7794 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.0001441/0.6697, allocations: 148.1 kB / 1.03 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.6698, allocations: 15.81 kB / 1.03 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.696e-05/0.6698, allocations: 17.64 kB / 1.03 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.6699, allocations: 4 kB / 1.03 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.6699, allocations: 11.91 kB / 1.03 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.6699, allocations: 4 kB / 1.03 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009306/0.6708, allocations: 0.5249 MB / 1.031 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.6708, allocations: 4 kB / 1.031 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.671, allocations: 19.98 kB / 1.031 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.671, allocations: 4 kB / 1.031 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.671, allocations: 4 kB / 1.031 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.543e-06/0.671, allocations: 4 kB / 1.031 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.671, allocations: 7.875 kB / 1.031 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006229/0.6717, allocations: 368.2 kB / 1.031 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.185e-05/0.6717, allocations: 100.8 kB / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.6718, allocations: 4 kB / 1.031 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.672, allocations: 24.33 kB / 1.031 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.38e-05/0.6721, allocations: 15.92 kB / 1.031 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.6721, allocations: 11.94 kB / 1.031 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001395/0.6722, allocations: 136.6 kB / 1.031 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6722, allocations: 0 / 1.031 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003579/0.6726, allocations: 28 kB / 1.031 GB, free: 7.559 MB / 0.7794 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.000165/0.6728, allocations: 107.2 kB / 1.031 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003975/0.6732, allocations: 128.5 kB / 1.032 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6732, allocations: 4.188 kB / 1.032 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.6734, allocations: 59.91 kB / 1.032 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.674, allocations: 57.45 kB / 1.032 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007922/0.6748, allocations: 432.5 kB / 1.032 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.6752, allocations: 0.7245 MB / 1.033 GB, free: 5.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.139e-05/0.6753, allocations: 15.44 kB / 1.033 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of SimCode: time 1.202e-06/0.6753, allocations: 3.938 kB / 1.033 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of Templates: time 0.004995/0.6803, allocations: 2.105 MB / 1.035 GB, free: 3.863 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches