Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, 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.01021/0.01021, 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.547/1.547, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.17/3.17, allocations: 462.7 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003827/0.0003825, allocations: 9.344 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4246/0.425, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001118/0.4262, allocations: 486.8 kB / 1.059 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001791/0.428, allocations: 1.182 MB / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.638e-05/0.4281, allocations: 0 / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.961e-05/0.4281, allocations: 0 / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.237e-05/0.4282, allocations: 11.92 kB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005452/0.4288, allocations: 123 kB / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.4289, allocations: 111.8 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.4291, allocations: 20.12 kB / 1.061 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.4292, allocations: 47.78 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.4293, allocations: 35.89 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.4293, allocations: 11.94 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.568e-05/0.4294, allocations: 23.97 kB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.298e-05/0.4294, allocations: 3.984 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.561e-05/0.4295, allocations: 73.48 kB / 1.061 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.4298, allocations: 99.72 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.4298, allocations: 4 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.044e-06/0.4298, allocations: 0 / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.4298, allocations: 0 / 1.061 GB, free: 3.215 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006739/0.4305, allocations: 413.2 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.4305, allocations: 8.031 kB / 1.061 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.631e-05/0.4306, allocations: 16.78 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.4307, allocations: 176.2 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.4308, allocations: 4.375 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.539e-05/0.4308, allocations: 12.31 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.431, allocations: 82.22 kB / 1.062 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.4311, allocations: 7.922 kB / 1.062 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.4311, allocations: 4 kB / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.4311, allocations: 0 / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.4313, allocations: 55.95 kB / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006048/0.4319, allocations: 348.6 kB / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.4321, allocations: 66.55 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.4322, allocations: 36.95 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.4323, allocations: 0 / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002446/0.4325, allocations: 99.39 kB / 1.062 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 2.184e-06/0.4325, allocations: 0 / 1.062 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005168/0.433, allocations: 161.8 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.4331, allocations: 59.41 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.4332, allocations: 117.8 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.4333, allocations: 33.7 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.751e-05/0.4334, allocations: 96.03 kB / 1.063 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.4334, allocations: 19.75 kB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.353e-05/0.4334, allocations: 17.72 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.4336, allocations: 330.7 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.4338, allocations: 59.95 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.434, allocations: 97.05 kB / 1.063 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.4343, allocations: 158.8 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.4343, allocations: 4 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004859/0.4348, allocations: 223 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.4349, allocations: 37.7 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4349, allocations: 8.219 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.435, allocations: 4.047 kB / 1.063 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.4351, allocations: 19.92 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.4351, allocations: 7.969 kB / 1.063 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.4354, allocations: 43.97 kB / 1.064 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.094e-05/0.4354, allocations: 15.98 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001343/0.4356, allocations: 121.8 kB / 1.064 GB, free: 16 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.4356, allocations: 7.906 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003626/0.4359, allocations: 141.9 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.436, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.436, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.436, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000531/0.4365, allocations: 394.4 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.4365, allocations: 0 / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.735e-05/0.4366, allocations: 15.92 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.4366, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.4366, allocations: 4 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.4366, allocations: 4 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.4366, allocations: 7.922 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.4371, allocations: 223.4 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-05/0.4371, allocations: 81.02 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.4372, allocations: 0 / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.593e-05/0.4373, allocations: 19.98 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.882e-05/0.4373, allocations: 7.938 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.4374, allocations: 3.984 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.897e-05/0.4374, allocations: 87.28 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4374, allocations: 4 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002807/0.4377, allocations: 27.98 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002019/0.4379, allocations: 103.2 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004347/0.4384, allocations: 187.3 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4384, allocations: 3.938 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.4385, allocations: 56.27 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.4388, allocations: 15.92 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000421/0.4392, allocations: 197 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.4396, allocations: 0.6926 MB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.693e-05/0.4396, allocations: 4 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.4396, allocations: 15.42 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.4396, allocations: 0 / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.004993/0.4446, allocations: 1.31 MB / 1.067 GB, free: 12.29 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches