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.00111/0.00111, allocations: 97.64 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.009488/0.009488, allocations: 170.1 kB / 16.27 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.517/1.517, 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 2.909/2.909, allocations: 462.7 MB / 0.7364 GB, free: 324 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004225/0.0004225, allocations: 11.75 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4297/0.4301, allocations: 159.6 MB / 1.059 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001402/0.4316, allocations: 0.6051 MB / 1.059 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002005/0.4336, allocations: 1.194 MB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.172e-05/0.4337, allocations: 0 / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.712e-05/0.4338, allocations: 7.922 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.124e-05/0.4339, allocations: 15.88 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.4344, allocations: 138.9 kB / 1.061 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002023/0.4346, allocations: 155.7 kB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.4347, allocations: 25.11 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.4348, allocations: 55.83 kB / 1.061 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.089e-05/0.4349, allocations: 51.75 kB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.435, allocations: 8 kB / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.884e-05/0.4351, allocations: 23.98 kB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.037e-05/0.4351, allocations: 19.91 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.598e-05/0.4352, allocations: 77.42 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.4354, allocations: 159.7 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.4354, allocations: 0 / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.392e-06/0.4355, allocations: 0 / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.4355, allocations: 0 / 1.061 GB, free: 2.98 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.0005845/0.436, allocations: 436.8 kB / 1.062 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.4361, allocations: 15.97 kB / 1.062 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.4361, allocations: 16.75 kB / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005676/0.4367, allocations: 252.2 kB / 1.062 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.4368, allocations: 12.38 kB / 1.062 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.4368, allocations: 16.36 kB / 1.062 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.437, allocations: 86.22 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.4371, allocations: 7.875 kB / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.4371, allocations: 7.984 kB / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.4371, allocations: 4 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.4373, allocations: 59.89 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006951/0.438, allocations: 384.4 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.4381, allocations: 50.48 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.853e-05/0.4382, allocations: 32.95 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.4383, allocations: 0 / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002976/0.4386, allocations: 103.3 kB / 1.063 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 3.386e-06/0.4386, allocations: 0 / 1.063 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004444/0.439, allocations: 149.4 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.4391, allocations: 59.28 kB / 1.063 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/0.4392, allocations: 147.4 kB / 1.063 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.4393, allocations: 33.7 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.4394, allocations: 108.1 kB / 1.063 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.4394, allocations: 23.61 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.582e-05/0.4395, allocations: 29.7 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4396, allocations: 322.8 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.4398, allocations: 55.97 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.44, allocations: 135.1 kB / 1.064 GB, free: 224 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.4404, allocations: 204.6 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.4404, allocations: 4 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005242/0.4409, allocations: 247.2 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.441, allocations: 37.7 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.441, allocations: 7.984 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.441, allocations: 4 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.4411, allocations: 27.92 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.4412, allocations: 11.88 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.4414, allocations: 55.97 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.4415, allocations: 15.98 kB / 1.064 GB, free: 15.55 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.0001231/0.4416, allocations: 129.6 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.048e-05/0.4416, allocations: 11.91 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.341e-05/0.4417, allocations: 12.7 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4417, allocations: 4 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4417, allocations: 3.938 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.4417, allocations: 0 / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006254/0.4423, allocations: 418.2 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4423, allocations: 0 / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.716e-05/0.4424, allocations: 15.98 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.4425, allocations: 3.938 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.4425, allocations: 0 / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4425, allocations: 4.469 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4425, allocations: 0 / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004553/0.443, allocations: 255.3 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.46e-05/0.443, allocations: 92.86 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.443, allocations: 4 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.4431, allocations: 15.98 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.568e-05/0.4432, allocations: 4 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.4432, allocations: 7.984 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.096e-05/0.4433, allocations: 106.2 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4433, allocations: 0 / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002965/0.4436, allocations: 32 kB / 1.065 GB, free: 14.36 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.0002219/0.4438, allocations: 111.2 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003815/0.4442, allocations: 191.2 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4442, allocations: 4 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.4443, allocations: 44.66 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.4446, allocations: 23.98 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005188/0.4452, allocations: 297.8 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.4455, allocations: 0.7086 MB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.685e-05/0.4456, allocations: 16.64 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.956e-05/0.4456, allocations: 23.38 kB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.4456, allocations: 0 / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of Templates: time 0.00464/0.4503, allocations: 1.535 MB / 1.068 GB, free: 11.36 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