Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 103.9 kB / 16.4 MB, free: 6.465 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.001339/0.001339, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.284/1.284, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.475/2.475, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 63.91 kB / 1.055 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7472/0.7485, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002235/0.7508, allocations: 0.7609 MB / 1.209 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.752, allocations: 1.069 MB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.257e-05/0.7521, allocations: 7.938 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.937e-05/0.7521, allocations: 3.938 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.501e-05/0.7522, allocations: 11.86 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003178/0.7525, allocations: 43.89 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.7526, allocations: 83.7 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.7527, allocations: 24.16 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.822e-05/0.7528, allocations: 23.92 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.041e-05/0.7529, allocations: 39.83 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.7529, allocations: 4 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.825e-05/0.753, allocations: 19.98 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.565e-05/0.753, allocations: 19.92 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.434e-05/0.7531, allocations: 27.86 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.7532, allocations: 75.75 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.7532, allocations: 0 / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.276e-06/0.7532, allocations: 4 kB / 1.211 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.7532, allocations: 3.938 kB / 1.211 GB, free: 11.35 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005373/0.7538, allocations: 373 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.7538, allocations: 12.03 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.7539, allocations: 4.844 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.754, allocations: 184.1 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.754, allocations: 8.375 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.754, allocations: 4.375 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.7542, allocations: 70.16 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.7542, allocations: 11.88 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.7543, allocations: 0 / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.7543, allocations: 0 / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.7545, allocations: 43.95 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005766/0.755, allocations: 316.7 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.7552, allocations: 66.58 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.7553, allocations: 28.95 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.7553, allocations: 4 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/0.7555, allocations: 75.28 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.7555, allocations: 0 / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.000384/0.7559, allocations: 133.6 kB / 1.212 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.756, allocations: 59.39 kB / 1.212 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.229e-05/0.7561, allocations: 117.8 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.7561, allocations: 33.7 kB / 1.212 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.7561, allocations: 88.12 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.7562, allocations: 11.81 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.7562, allocations: 37.7 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.97e-05/0.7563, allocations: 322.8 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.7564, allocations: 27.97 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.7566, allocations: 73.98 kB / 1.213 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.7568, allocations: 117.8 kB / 1.213 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.7568, allocations: 0 / 1.213 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002831/0.7571, allocations: 125.4 kB / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.7571, allocations: 10.03 kB / 1.213 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.7571, allocations: 0 / 1.213 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.7571, allocations: 4 kB / 1.213 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.7573, allocations: 28.12 kB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.7573, allocations: 4 kB / 1.213 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.773e-05/0.7574, allocations: 11.94 kB / 1.213 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.7574, allocations: 7.984 kB / 1.213 GB, free: 8.723 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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 8.136e-05/0.7575, allocations: 117.8 kB / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.956e-05/0.7575, allocations: 7.906 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.467e-05/0.7575, allocations: 12.38 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.7575, allocations: 0 / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.7576, allocations: 7.984 kB / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.7576, allocations: 0 / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005698/0.7581, allocations: 378.3 kB / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.7582, allocations: 3.938 kB / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.688e-05/0.7582, allocations: 7.984 kB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.7583, allocations: 0 / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.7583, allocations: 7.938 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.7583, allocations: 11.94 kB / 1.213 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.7583, allocations: 0 / 1.213 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.7587, allocations: 195.5 kB / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.533e-05/0.7587, allocations: 85.02 kB / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.7587, allocations: 0 / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.7589, allocations: 11.92 kB / 1.214 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.223e-05/0.7589, allocations: 8 kB / 1.214 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.337e-06/0.7589, allocations: 3.984 kB / 1.214 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.845e-05/0.759, allocations: 91.28 kB / 1.214 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.759, allocations: 0 / 1.214 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003987/0.7594, allocations: 16 kB / 1.214 GB, free: 7.672 MB / 0.9356 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000165/0.7596, allocations: 115.1 kB / 1.214 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003758/0.76, allocations: 84.39 kB / 1.214 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.76, allocations: 0 / 1.214 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.7602, allocations: 27.98 kB / 1.214 GB, free: 7.441 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.7606, allocations: 17.12 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004228/0.761, allocations: 199.6 kB / 1.214 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.7613, allocations: 0.6927 MB / 1.215 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.7614, allocations: 11.44 kB / 1.215 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of SimCode: time 2.91e-07/0.7614, allocations: 0 / 1.215 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of Templates: time 0.003222/0.7646, allocations: 1.046 MB / 1.216 GB, free: 5.434 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y