Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007003/0.007004, allocations: 102.6 kB / 15.74 MB, free: 5.508 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.001412/0.001412, allocations: 195.6 kB / 16.67 MB, free: 5.438 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.564/1.564, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.966/2.966, allocations: 437 MB / 0.7105 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001362, allocations: 67.83 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4573/0.4587, allocations: 151.6 MB / 1.167 GB, free: 6.805 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00226/0.4611, allocations: 0.7475 MB / 1.167 GB, free: 6.055 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.4628, allocations: 1.077 MB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.411e-05/0.4628, allocations: 0 / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.982e-05/0.4629, allocations: 7.922 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.687e-05/0.463, allocations: 11.88 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.4634, allocations: 51.83 kB / 1.168 GB, free: 4.891 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.4635, allocations: 71.77 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.4637, allocations: 24.17 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.547e-05/0.4638, allocations: 31.91 kB / 1.169 GB, free: 4.762 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.373e-05/0.4639, allocations: 31.84 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.4639, allocations: 8 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.616e-05/0.464, allocations: 23.92 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.788e-05/0.4641, allocations: 15.91 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.474e-05/0.4641, allocations: 31.86 kB / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001822/0.4643, allocations: 75.69 kB / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4643, allocations: 0 / 1.169 GB, free: 4.578 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.154e-06/0.4643, allocations: 4 kB / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.4643, allocations: 0 / 1.169 GB, free: 4.574 MB / 0.92 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.0006781/0.465, allocations: 391.1 kB / 1.169 GB, free: 4.145 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4651, allocations: 8.031 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.519e-05/0.4651, allocations: 8.891 kB / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.4653, allocations: 172.3 kB / 1.169 GB, free: 3.922 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.4653, allocations: 4.375 kB / 1.169 GB, free: 3.918 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.4653, allocations: 8.375 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.4655, allocations: 74.16 kB / 1.169 GB, free: 3.832 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4656, allocations: 3.938 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.4656, allocations: 0 / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.4656, allocations: 4 kB / 1.169 GB, free: 3.824 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.4658, allocations: 47.89 kB / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007034/0.4665, allocations: 328.6 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.4667, allocations: 50.55 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.71e-05/0.4668, allocations: 36.91 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.4668, allocations: 0 / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002189/0.467, allocations: 91.34 kB / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.467, allocations: 0 / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004172/0.4675, allocations: 121.6 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.4675, allocations: 55.41 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.4677, allocations: 129.7 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.4677, allocations: 25.7 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.568e-05/0.4678, allocations: 92.14 kB / 1.17 GB, free: 2.754 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.4678, allocations: 15.89 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.4679, allocations: 33.7 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.468, allocations: 322.8 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.4681, allocations: 27.97 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.4683, allocations: 77.92 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/0.4685, allocations: 105.9 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4685, allocations: 0 / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002983/0.4688, allocations: 137.4 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.4688, allocations: 4.219 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4688, allocations: 8 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.4689, allocations: 0 / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.469, allocations: 15.98 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.469, allocations: 4 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.023e-05/0.4691, allocations: 15.88 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.4691, allocations: 8.312 kB / 1.171 GB, free: 1.93 MB / 0.92 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 0.0001185/0.4692, allocations: 125.7 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.4693, allocations: 7.953 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/0.4693, allocations: 16.3 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.4693, allocations: 0 / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.4693, allocations: 0 / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4693, allocations: 3.984 kB / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004551/0.4698, allocations: 378.4 kB / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.4698, allocations: 0 / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.916e-05/0.4699, allocations: 8 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4699, allocations: 4 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.4699, allocations: 3.984 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.4699, allocations: 3.938 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4699, allocations: 4 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.4702, allocations: 203.4 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.4702, allocations: 85.05 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.4703, allocations: 7.938 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.958e-05/0.4704, allocations: 11.94 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.4704, allocations: 7.984 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.862e-06/0.4704, allocations: 0 / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.386e-05/0.4705, allocations: 95.27 kB / 1.172 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4705, allocations: 0 / 1.172 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002669/0.4708, allocations: 19.94 kB / 1.172 GB, free: 0.8633 MB / 0.92 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.0001947/0.471, allocations: 103.2 kB / 1.172 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002811/0.4713, allocations: 79.88 kB / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4713, allocations: 0 / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.4714, allocations: 39.91 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.4717, allocations: 9.625 kB / 1.172 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000456/0.4722, allocations: 162.5 kB / 1.172 GB, free: 452 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.4725, allocations: 0.6885 MB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.907e-05/0.4725, allocations: 7.984 kB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.4726, allocations: 11.44 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.4726, allocations: 0 / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of Templates: time 0.003814/0.4764, allocations: 0.9773 MB / 1.174 GB, free: 14.77 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start