Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.SampleTriggerPositiveStartTime,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.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_latest_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.001215/0.001215, allocations: 106.6 kB / 16.41 MB, free: 6.441 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.00117/0.001171, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.476/2.476, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 72.11 kB / 1.055 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7672/0.7685, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001985/0.7705, allocations: 0.7454 MB / 1.209 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.7719, allocations: 1.08 MB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.783e-05/0.772, allocations: 4 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.934e-05/0.772, allocations: 3.938 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.508e-05/0.7721, allocations: 15.86 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003127/0.7724, allocations: 51.83 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.7725, allocations: 63.84 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.7727, allocations: 16.17 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.343e-05/0.7728, allocations: 35.84 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.188e-05/0.7728, allocations: 35.91 kB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.7728, allocations: 11.94 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.7729, allocations: 19.92 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.422e-05/0.773, allocations: 19.92 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.229e-05/0.773, allocations: 31.84 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.7732, allocations: 75.75 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.7732, allocations: 0 / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7732, allocations: 3.938 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.7732, allocations: 0 / 1.211 GB, free: 11.37 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.0005419/0.7737, allocations: 381 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.7738, allocations: 12.02 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.205e-05/0.7738, allocations: 8.844 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.774, allocations: 172.2 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.774, allocations: 4.375 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.774, allocations: 4.375 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001978/0.7742, allocations: 74.16 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.7742, allocations: 3.938 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.7742, allocations: 0 / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.7743, allocations: 4 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.7744, allocations: 43.95 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006033/0.775, allocations: 316.7 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.7752, allocations: 62.55 kB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.474e-05/0.7753, allocations: 28.95 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.7753, allocations: 0 / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002116/0.7756, allocations: 87.3 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 4.819e-06/0.7756, allocations: 3.984 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004082/0.776, allocations: 125.9 kB / 1.212 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.776, allocations: 55.39 kB / 1.212 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.7761, allocations: 125.8 kB / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.7762, allocations: 25.7 kB / 1.212 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.171e-05/0.7762, allocations: 92.12 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.7763, allocations: 19.8 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.655e-05/0.7763, allocations: 33.7 kB / 1.212 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.7764, allocations: 326.8 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.7765, allocations: 31.92 kB / 1.213 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.7767, allocations: 73.92 kB / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.7769, allocations: 105.9 kB / 1.213 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.7769, allocations: 3.938 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003094/0.7772, allocations: 133.4 kB / 1.213 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.7773, allocations: 11.98 kB / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.7773, allocations: 0 / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.7773, allocations: 4 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.7774, allocations: 19.98 kB / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.7774, allocations: 4.281 kB / 1.213 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.742e-05/0.7775, allocations: 23.92 kB / 1.213 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.7775, allocations: 4 kB / 1.213 GB, free: 8.73 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 9.952e-05/0.7776, allocations: 123.8 kB / 1.213 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.7777, allocations: 11.91 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.575e-05/0.7777, allocations: 4.375 kB / 1.213 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.7777, allocations: 4 kB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.7777, allocations: 0 / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.7777, allocations: 3.984 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004398/0.7782, allocations: 370.3 kB / 1.213 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.7782, allocations: 0 / 1.213 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.433e-05/0.7783, allocations: 15.98 kB / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.7783, allocations: 0 / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.7783, allocations: 0 / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.7783, allocations: 3.938 kB / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.7783, allocations: 0 / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002769/0.7786, allocations: 207.4 kB / 1.214 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.422e-05/0.7786, allocations: 81.02 kB / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.7786, allocations: 4 kB / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.281e-05/0.7787, allocations: 11.92 kB / 1.214 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-05/0.7788, allocations: 7.984 kB / 1.214 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.7788, allocations: 4 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.7788, allocations: 99.2 kB / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7788, allocations: 0 / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002468/0.7791, allocations: 16 kB / 1.214 GB, free: 7.68 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.0001516/0.7793, allocations: 104.2 kB / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002643/0.7795, allocations: 76.19 kB / 1.214 GB, free: 7.496 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.7795, allocations: 4.125 kB / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.7797, allocations: 35.92 kB / 1.214 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.7799, allocations: 11.98 kB / 1.214 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.7803, allocations: 191.7 kB / 1.214 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.7805, allocations: 0.6885 MB / 1.215 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.377e-05/0.7806, allocations: 23.38 kB / 1.215 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.7806, allocations: 0 / 1.215 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of Templates: time 0.002639/0.7832, allocations: 1.056 MB / 1.216 GB, free: 5.449 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y