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.001122/0.001122, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008346/0.008346, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.501/1.501, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.084/3.084, allocations: 483.2 MB / 0.7565 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.000339, allocations: 19.33 kB / 0.9276 GB, free: 29.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3587, allocations: 164.5 MB / 1.088 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002439/0.3612, allocations: 1.536 MB / 1.09 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3622, allocations: 0.5222 MB / 1.09 GB, free: 8.25 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.3624, allocations: 7.938 kB / 1.09 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.3625, allocations: 15.86 kB / 1.09 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.105e-05/0.3626, allocations: 27.78 kB / 1.09 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.3628, allocations: 55.94 kB / 1.09 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.3631, allocations: 163.5 kB / 1.09 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.3633, allocations: 45.59 kB / 1.091 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.856e-05/0.3634, allocations: 43.72 kB / 1.091 GB, free: 7.895 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.378e-05/0.3634, allocations: 51.66 kB / 1.091 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.3635, allocations: 4 kB / 1.091 GB, free: 7.84 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.711e-05/0.3635, allocations: 4 kB / 1.091 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.284e-05/0.3636, allocations: 27.84 kB / 1.091 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.513e-05/0.3637, allocations: 81.31 kB / 1.091 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.3639, allocations: 115.8 kB / 1.091 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3639, allocations: 0 / 1.091 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3639, allocations: 0 / 1.091 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.3639, allocations: 0 / 1.091 GB, free: 7.609 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.0008437/0.3647, allocations: 458.8 kB / 1.091 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3648, allocations: 12.02 kB / 1.091 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.836e-05/0.3648, allocations: 20.75 kB / 1.091 GB, free: 7.082 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.3652, allocations: 228.4 kB / 1.092 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.3652, allocations: 8.375 kB / 1.092 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.3652, allocations: 20.36 kB / 1.092 GB, free: 6.793 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003401/0.3656, allocations: 156.4 kB / 1.092 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3656, allocations: 4 kB / 1.092 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.3656, allocations: 0 / 1.092 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.3657, allocations: 8 kB / 1.092 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/0.3659, allocations: 85.08 kB / 1.092 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.367, allocations: 0.7314 MB / 1.093 GB, free: 5.73 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.3672, allocations: 66.47 kB / 1.093 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.3673, allocations: 36.83 kB / 1.093 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3674, allocations: 4 kB / 1.093 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003307/0.3677, allocations: 130.7 kB / 1.093 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.3677, allocations: 0 / 1.093 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0005427/0.3683, allocations: 185.5 kB / 1.093 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.855e-05/0.3684, allocations: 128.5 kB / 1.093 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.3686, allocations: 206.7 kB / 1.093 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.3687, allocations: 29.7 kB / 1.093 GB, free: 4.867 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.3688, allocations: 131.9 kB / 1.093 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.34e-05/0.3688, allocations: 39.69 kB / 1.093 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.634e-05/0.3689, allocations: 21.72 kB / 1.093 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3691, allocations: 330.8 kB / 1.094 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.3692, allocations: 43.97 kB / 1.094 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.3695, allocations: 154.5 kB / 1.094 GB, free: 4.09 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004596/0.3699, allocations: 222.2 kB / 1.094 GB, free: 3.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3699, allocations: 0 / 1.094 GB, free: 3.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004476/0.3704, allocations: 213 kB / 1.094 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3704, allocations: 11.94 kB / 1.094 GB, free: 3.594 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3704, allocations: 4.5 kB / 1.094 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.3705, allocations: 8.25 kB / 1.094 GB, free: 3.582 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.3706, allocations: 39.91 kB / 1.094 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.965e-05/0.3706, allocations: 15.94 kB / 1.094 GB, free: 3.527 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.3708, allocations: 27.83 kB / 1.094 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.3708, allocations: 12 kB / 1.094 GB, free: 3.488 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.0001435/0.371, allocations: 133.7 kB / 1.095 GB, free: 3.348 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.371, allocations: 19.81 kB / 1.095 GB, free: 3.328 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.3711, allocations: 21.39 kB / 1.095 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.3711, allocations: 0 / 1.095 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3711, allocations: 4 kB / 1.095 GB, free: 3.305 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3711, allocations: 0 / 1.095 GB, free: 3.305 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000905/0.372, allocations: 0.5288 MB / 1.095 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.372, allocations: 0 / 1.095 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.3722, allocations: 27.92 kB / 1.095 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3722, allocations: 0 / 1.095 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.3723, allocations: 8 kB / 1.095 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3723, allocations: 3.984 kB / 1.095 GB, free: 2.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.3723, allocations: 3.938 kB / 1.095 GB, free: 2.676 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005796/0.3729, allocations: 372.2 kB / 1.096 GB, free: 2.289 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.924e-05/0.373, allocations: 97.3 kB / 1.096 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.373, allocations: 0 / 1.096 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.3732, allocations: 20.03 kB / 1.096 GB, free: 2.156 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.3732, allocations: 15.92 kB / 1.096 GB, free: 2.141 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.3733, allocations: 7.984 kB / 1.096 GB, free: 2.133 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001283/0.3734, allocations: 144.4 kB / 1.096 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3734, allocations: 0 / 1.096 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004227/0.3738, allocations: 28 kB / 1.096 GB, free: 1.965 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.0001461/0.374, allocations: 111.2 kB / 1.096 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003571/0.3743, allocations: 128.6 kB / 1.096 GB, free: 1.723 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3744, allocations: 0 / 1.096 GB, free: 1.723 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.3745, allocations: 60.09 kB / 1.096 GB, free: 1.664 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005871/0.3751, allocations: 57.34 kB / 1.096 GB, free: 1.609 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006761/0.3758, allocations: 406.9 kB / 1.097 GB, free: 1.172 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.3762, allocations: 0.7284 MB / 1.097 GB, free: 428 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.919e-05/0.3763, allocations: 13.55 kB / 1.097 GB, free: 416 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.886e-05/0.3763, allocations: 23.44 kB / 1.097 GB, free: 392 kB / 0.8419 GB Notification: Performance of SimCode: time 5.71e-07/0.3764, allocations: 3.938 kB / 1.097 GB, free: 388 kB / 0.8419 GB Notification: Performance of Templates: time 0.005632/0.382, allocations: 1.802 MB / 1.099 GB, free: 14.6 MB / 0.8575 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