Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007948/0.007948, allocations: 102.4 kB / 15.73 MB, free: 6.051 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.00133/0.00133, allocations: 199.1 kB / 16.68 MB, free: 5.969 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.48/1.48, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.909/2.909, allocations: 461.9 MB / 0.7347 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 64.09 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3712/0.3724, allocations: 157.4 MB / 1.208 GB, free: 9.539 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002241/0.3747, allocations: 0.8788 MB / 1.209 GB, free: 8.66 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.3764, allocations: 1.182 MB / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.524e-05/0.3765, allocations: 4 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.384e-05/0.3765, allocations: 11.86 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.521e-05/0.3766, allocations: 11.81 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005711/0.3772, allocations: 159 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.3774, allocations: 167.7 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.3776, allocations: 41.08 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.3777, allocations: 67.83 kB / 1.21 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.3778, allocations: 75.72 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.3779, allocations: 16 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.09e-05/0.378, allocations: 23.98 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.596e-05/0.378, allocations: 23.92 kB / 1.21 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.127e-05/0.3781, allocations: 67.7 kB / 1.21 GB, free: 6.812 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.3784, allocations: 171.3 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3784, allocations: 0 / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3784, allocations: 0 / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.3784, allocations: 3.938 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008088/0.3792, allocations: 460.8 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3793, allocations: 8.625 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.429e-05/0.3794, allocations: 20.75 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005569/0.3799, allocations: 248.2 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.38, allocations: 12.38 kB / 1.211 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.38, allocations: 12.38 kB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.3802, allocations: 90.14 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3802, allocations: 3.938 kB / 1.211 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.3803, allocations: 11.98 kB / 1.211 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3803, allocations: 0 / 1.211 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.3805, allocations: 47.95 kB / 1.211 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/0.3812, allocations: 388.4 kB / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.3814, allocations: 34.55 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.3815, allocations: 24.97 kB / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.3815, allocations: 0 / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.3817, allocations: 107.3 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.3817, allocations: 4 kB / 1.212 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0004345/0.3821, allocations: 125.5 kB / 1.212 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.3822, allocations: 63.33 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.3824, allocations: 143.8 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.3824, allocations: 37.69 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/0.3825, allocations: 108.1 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.127e-05/0.3825, allocations: 23.62 kB / 1.212 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-05/0.3826, allocations: 49.69 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3827, allocations: 322.8 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.3829, allocations: 47.97 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.3831, allocations: 133.6 kB / 1.213 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.3834, allocations: 201 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3834, allocations: 4 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000472/0.3839, allocations: 247.1 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.384, allocations: 33.7 kB / 1.213 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.384, allocations: 11.88 kB / 1.213 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.384, allocations: 4 kB / 1.214 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3841, allocations: 27.97 kB / 1.214 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.3841, allocations: 11.88 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/0.3844, allocations: 35.91 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.3845, allocations: 11.98 kB / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.000112/0.3846, allocations: 133.8 kB / 1.214 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.3846, allocations: 11.81 kB / 1.214 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.178e-05/0.3846, allocations: 12.7 kB / 1.214 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3847, allocations: 4 kB / 1.214 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3847, allocations: 3.938 kB / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3847, allocations: 0 / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006036/0.3853, allocations: 398.4 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3853, allocations: 3.984 kB / 1.214 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.064e-05/0.3854, allocations: 12 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.3854, allocations: 3.938 kB / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3854, allocations: 7.984 kB / 1.214 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3854, allocations: 0 / 1.214 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3854, allocations: 0 / 1.214 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000432/0.3859, allocations: 243.3 kB / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.3859, allocations: 96.98 kB / 1.214 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.386, allocations: 4 kB / 1.214 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.71e-05/0.3861, allocations: 4 kB / 1.214 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.3861, allocations: 7.984 kB / 1.214 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.3861, allocations: 7.984 kB / 1.214 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.435e-05/0.3862, allocations: 104.8 kB / 1.215 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3862, allocations: 7.938 kB / 1.215 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002947/0.3865, allocations: 28 kB / 1.215 GB, free: 2.082 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0002092/0.3867, allocations: 114 kB / 1.215 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003927/0.3871, allocations: 179.7 kB / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3871, allocations: 4.188 kB / 1.215 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.3873, allocations: 43.91 kB / 1.215 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.3876, allocations: 17.23 kB / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005556/0.3881, allocations: 268.9 kB / 1.215 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.3885, allocations: 0.7084 MB / 1.216 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.219e-05/0.3886, allocations: 20.58 kB / 1.216 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.001e-05/0.3886, allocations: 15.44 kB / 1.216 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.3886, allocations: 0 / 1.216 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of Templates: time 0.004605/0.3932, allocations: 1.688 MB / 1.218 GB, free: 14.98 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches