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.0008888/0.000889, allocations: 97.72 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.007336/0.007337, allocations: 168.6 kB / 16.26 MB, free: 6.652 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.522/1.522, 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 11.0.1-master/package.mo): time 3.002/3.002, allocations: 462.7 MB / 0.7364 GB, free: 272 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003812, allocations: 19.06 kB / 0.9028 GB, free: 36.85 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4397/0.4401, allocations: 159.6 MB / 1.059 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001878/0.442, allocations: 0.5934 MB / 1.059 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002145/0.4442, allocations: 1.194 MB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.52e-05/0.4443, allocations: 4 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.516e-05/0.4443, allocations: 3.938 kB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.4445, allocations: 15.86 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007323/0.4452, allocations: 131 kB / 1.061 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002659/0.4455, allocations: 151.6 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.4457, allocations: 33.11 kB / 1.061 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.4459, allocations: 59.77 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.446, allocations: 51.75 kB / 1.061 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.379e-05/0.4461, allocations: 8 kB / 1.061 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.004e-05/0.4462, allocations: 19.98 kB / 1.061 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.162e-05/0.4462, allocations: 19.91 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.4464, allocations: 81.42 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003158/0.4467, allocations: 159.7 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.4467, allocations: 0 / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.737e-06/0.4467, allocations: 4 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.4467, allocations: 4 kB / 1.061 GB, free: 2.934 MB / 0.8106 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.001004/0.4477, allocations: 420.9 kB / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.562e-05/0.4478, allocations: 15.97 kB / 1.062 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.71e-05/0.4479, allocations: 16.75 kB / 1.062 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/0.4486, allocations: 265.4 kB / 1.062 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.4487, allocations: 4.375 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.601e-05/0.4487, allocations: 16.38 kB / 1.062 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.449, allocations: 98.19 kB / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.449, allocations: 7.875 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.4491, allocations: 0 / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.4491, allocations: 4 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002056/0.4493, allocations: 55.89 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009671/0.4503, allocations: 396.4 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.4504, allocations: 42.5 kB / 1.062 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.4506, allocations: 32.83 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.4506, allocations: 128 / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003136/0.4509, allocations: 95.36 kB / 1.063 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 4.789e-06/0.4509, allocations: 0 / 1.063 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0005209/0.4515, allocations: 149.5 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.4516, allocations: 59.66 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.4517, allocations: 143.1 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.099e-05/0.4518, allocations: 33.7 kB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.4519, allocations: 116.1 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.007e-05/0.452, allocations: 35.53 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.452, allocations: 21.72 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.4522, allocations: 318.8 kB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.4523, allocations: 55.95 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.4526, allocations: 131.1 kB / 1.064 GB, free: 192 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.4529, allocations: 212.6 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4529, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004928/0.4534, allocations: 250.9 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.4535, allocations: 35.42 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.4535, allocations: 4.375 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.4535, allocations: 8 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.4537, allocations: 27.92 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.4537, allocations: 11.88 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.4539, allocations: 59.8 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.454, allocations: 12 kB / 1.064 GB, free: 15.52 MB / 0.8262 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.0001202/0.4541, allocations: 127.4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.4541, allocations: 7.906 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.4542, allocations: 12.72 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.4542, allocations: 0 / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.4542, allocations: 3.938 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4542, allocations: 4 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005849/0.4548, allocations: 418.2 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4548, allocations: 0 / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.463e-05/0.4549, allocations: 19.98 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.4549, allocations: 3.938 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.455, allocations: 8 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.455, allocations: 0 / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.455, allocations: 0 / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004888/0.4555, allocations: 251.4 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.4555, allocations: 88.95 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.4556, allocations: 11.94 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.081e-05/0.4557, allocations: 8.031 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.4557, allocations: 7.984 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.4558, allocations: 8.141 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.921e-05/0.4559, allocations: 109 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4559, allocations: 4 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003046/0.4562, allocations: 28 kB / 1.065 GB, free: 14.32 MB / 0.8262 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.0002854/0.4565, allocations: 115.2 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004759/0.457, allocations: 191.3 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.457, allocations: 3.984 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.4571, allocations: 43.91 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.4575, allocations: 15.98 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006114/0.4581, allocations: 306.4 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.4584, allocations: 0.7125 MB / 1.067 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.056e-05/0.4585, allocations: 12.64 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.852e-05/0.4585, allocations: 19.38 kB / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.4585, allocations: 0 / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of Templates: time 0.005168/0.4637, allocations: 1.529 MB / 1.068 GB, free: 11.33 MB / 0.8262 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