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.00145/0.00145, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001509/0.001509, allocations: 193.7 kB / 16.14 MB, free: 6.691 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.536/1.536, allocations: 222.9 MB / 239.8 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.977/2.977, allocations: 482.4 MB / 0.7542 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.003161/0.003161, allocations: 63.12 kB / 0.9231 GB, free: 29.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3589, allocations: 162.2 MB / 1.082 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003178/0.3621, allocations: 1.867 MB / 1.083 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009313/0.363, allocations: 0.5416 MB / 1.084 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.925e-05/0.3631, allocations: 7.938 kB / 1.084 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.3633, allocations: 19.8 kB / 1.084 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.381e-05/0.3634, allocations: 19.84 kB / 1.084 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.3636, allocations: 55.89 kB / 1.084 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000225/0.3638, allocations: 159.5 kB / 1.084 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.364, allocations: 53.62 kB / 1.084 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.511e-05/0.3641, allocations: 43.8 kB / 1.084 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.302e-05/0.3641, allocations: 59.64 kB / 1.084 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.3642, allocations: 4 kB / 1.084 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 2.139e-05/0.3642, allocations: 11.94 kB / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.973e-05/0.3643, allocations: 31.84 kB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.094e-05/0.3643, allocations: 63.59 kB / 1.084 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.3645, allocations: 115.8 kB / 1.085 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3645, allocations: 4 kB / 1.085 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of FrontEnd: time 8.62e-07/0.3645, allocations: 0 / 1.085 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.437e-06/0.3645, allocations: 0 / 1.085 GB, free: 10.68 MB / 0.8419 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.0007507/0.3653, allocations: 470.7 kB / 1.085 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.3653, allocations: 15.97 kB / 1.085 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.67e-05/0.3654, allocations: 16.75 kB / 1.085 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.3657, allocations: 236.4 kB / 1.085 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.3657, allocations: 8.375 kB / 1.085 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.3657, allocations: 12.38 kB / 1.085 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.3661, allocations: 148.9 kB / 1.085 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3661, allocations: 4 kB / 1.085 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3661, allocations: 3.938 kB / 1.085 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.3661, allocations: 4 kB / 1.085 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.3664, allocations: 75.88 kB / 1.085 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000948/0.3673, allocations: 0.7314 MB / 1.086 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.3675, allocations: 46.55 kB / 1.086 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.3676, allocations: 40.84 kB / 1.086 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.3676, allocations: 4.141 kB / 1.086 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.3679, allocations: 130.6 kB / 1.086 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.368, allocations: 0 / 1.086 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0005135/0.3685, allocations: 169.3 kB / 1.087 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.532e-05/0.3686, allocations: 128.5 kB / 1.087 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.3688, allocations: 206.7 kB / 1.087 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.3688, allocations: 29.7 kB / 1.087 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.517e-05/0.3689, allocations: 123.9 kB / 1.087 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.669e-05/0.369, allocations: 47.7 kB / 1.087 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.341e-05/0.3691, allocations: 37.7 kB / 1.087 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.3692, allocations: 330.8 kB / 1.087 GB, free: 7.43 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.3694, allocations: 39.92 kB / 1.087 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.3696, allocations: 146.4 kB / 1.088 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.3699, allocations: 198.4 kB / 1.088 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.37, allocations: 3.938 kB / 1.088 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004252/0.3704, allocations: 209 kB / 1.088 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3704, allocations: 8 kB / 1.088 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.3704, allocations: 4.5 kB / 1.088 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.3704, allocations: 8 kB / 1.088 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.3706, allocations: 31.92 kB / 1.088 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.3706, allocations: 11.98 kB / 1.088 GB, free: 6.672 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.3708, allocations: 27.83 kB / 1.088 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.3708, allocations: 8 kB / 1.088 GB, free: 6.637 MB / 0.8419 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.0001227/0.3709, allocations: 133.7 kB / 1.088 GB, free: 6.496 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.993e-05/0.3709, allocations: 15.81 kB / 1.088 GB, free: 6.48 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.253e-05/0.371, allocations: 29.39 kB / 1.088 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.371, allocations: 0 / 1.088 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.371, allocations: 4 kB / 1.088 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.371, allocations: 3.938 kB / 1.088 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008187/0.3719, allocations: 0.5131 MB / 1.089 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3719, allocations: 8 kB / 1.089 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.372, allocations: 15.98 kB / 1.089 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.372, allocations: 0 / 1.089 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.372, allocations: 4 kB / 1.089 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.372, allocations: 4 kB / 1.089 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.372, allocations: 4.25 kB / 1.089 GB, free: 5.84 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.3726, allocations: 364 kB / 1.089 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.718e-05/0.3727, allocations: 101 kB / 1.089 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.3727, allocations: 4 kB / 1.089 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.3729, allocations: 11.98 kB / 1.089 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.3729, allocations: 11.92 kB / 1.089 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.373, allocations: 16.38 kB / 1.089 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001295/0.3731, allocations: 144.3 kB / 1.089 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3731, allocations: 0 / 1.089 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003625/0.3735, allocations: 28 kB / 1.089 GB, free: 5.133 MB / 0.8419 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.0001432/0.3736, allocations: 111.2 kB / 1.09 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003361/0.374, allocations: 116.1 kB / 1.09 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.374, allocations: 0 / 1.09 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.3741, allocations: 51.98 kB / 1.09 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005601/0.3747, allocations: 69.42 kB / 1.09 GB, free: 4.789 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006392/0.3753, allocations: 387 kB / 1.09 GB, free: 4.371 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.3757, allocations: 0.7206 MB / 1.091 GB, free: 3.625 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.704e-05/0.3758, allocations: 21.55 kB / 1.091 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.109e-05/0.3759, allocations: 15.44 kB / 1.091 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.3759, allocations: 0 / 1.091 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of Templates: time 0.005167/0.381, allocations: 1.814 MB / 1.093 GB, free: 1.797 MB / 0.8419 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=400 -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