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.008399/0.008399, allocations: 101.2 kB / 15.73 MB, free: 5.523 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.001509/0.001509, allocations: 195.9 kB / 16.67 MB, free: 5.461 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.527/1.527, allocations: 222.9 MB / 240.4 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.83/2.83, allocations: 461.9 MB / 0.7347 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 59.91 kB / 1.054 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.188/1.19, 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.002794/1.193, allocations: 0.7469 MB / 1.208 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00167/1.194, allocations: 1.073 MB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.338e-05/1.194, allocations: 0 / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.039e-05/1.194, allocations: 11.92 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.772e-05/1.195, allocations: 11.86 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/1.195, allocations: 51.83 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002318/1.195, allocations: 75.77 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/1.195, allocations: 16.17 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.714e-05/1.195, allocations: 23.92 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.16e-05/1.195, allocations: 39.83 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.825e-05/1.195, allocations: 11.94 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.931e-05/1.196, allocations: 19.98 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.122e-05/1.196, allocations: 19.92 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.763e-05/1.196, allocations: 27.86 kB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001841/1.196, allocations: 79.75 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/1.196, allocations: 0 / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.523e-06/1.196, allocations: 0 / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.735e-06/1.196, allocations: 0 / 1.21 GB, free: 11.36 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.0007165/1.197, allocations: 373 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/1.197, allocations: 16.03 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.394e-05/1.197, allocations: 8.844 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/1.197, allocations: 192 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/1.197, allocations: 384 / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/1.197, allocations: 4.375 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/1.197, allocations: 66.22 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/1.197, allocations: 3.938 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/1.197, allocations: 4 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/1.197, allocations: 4 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/1.197, allocations: 51.89 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007098/1.198, allocations: 320.6 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/1.198, allocations: 50.56 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/1.199, allocations: 40.95 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/1.199, allocations: 0 / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/1.199, allocations: 83.31 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.793e-06/1.199, allocations: 0 / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0005037/1.199, allocations: 129.6 kB / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/1.199, allocations: 55.41 kB / 1.211 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/1.2, allocations: 121.8 kB / 1.211 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/1.2, allocations: 33.69 kB / 1.211 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.684e-05/1.2, allocations: 88.14 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/1.2, allocations: 11.81 kB / 1.211 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.156e-05/1.2, allocations: 29.7 kB / 1.211 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002199/1.2, allocations: 326.8 kB / 1.212 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/1.2, allocations: 35.92 kB / 1.212 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/1.2, allocations: 73.97 kB / 1.212 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/1.201, allocations: 101.9 kB / 1.212 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/1.201, allocations: 7.938 kB / 1.212 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003377/1.201, allocations: 137.3 kB / 1.212 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/1.201, allocations: 4 kB / 1.212 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.201, allocations: 0 / 1.212 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/1.201, allocations: 4 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/1.201, allocations: 15.98 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/1.201, allocations: 4 kB / 1.212 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.843e-05/1.201, allocations: 20.14 kB / 1.212 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/1.201, allocations: 4 kB / 1.212 GB, free: 8.727 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 0.0001097/1.201, allocations: 127.8 kB / 1.212 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.299e-05/1.201, allocations: 3.906 kB / 1.212 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.877e-05/1.201, allocations: 16.36 kB / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/1.201, allocations: 0 / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/1.201, allocations: 0 / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/1.201, allocations: 0 / 1.212 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000531/1.202, allocations: 382.6 kB / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/1.202, allocations: 0 / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.399e-05/1.202, allocations: 4 kB / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/1.202, allocations: 0 / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/1.202, allocations: 8 kB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/1.202, allocations: 7.922 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.202, allocations: 0 / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/1.202, allocations: 199.5 kB / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/1.202, allocations: 92.94 kB / 1.213 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/1.203, allocations: 3.984 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.164e-05/1.203, allocations: 7.938 kB / 1.213 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/1.203, allocations: 11.98 kB / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/1.203, allocations: 0 / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.608e-05/1.203, allocations: 91.27 kB / 1.213 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/1.203, allocations: 8 kB / 1.213 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002687/1.203, allocations: 12 kB / 1.213 GB, free: 7.668 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.0002036/1.203, allocations: 107.2 kB / 1.213 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002914/1.204, allocations: 79.81 kB / 1.213 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.204, allocations: 448 / 1.213 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/1.204, allocations: 39.91 kB / 1.213 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/1.204, allocations: 16 kB / 1.213 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004244/1.204, allocations: 170 kB / 1.214 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/1.205, allocations: 0.6885 MB / 1.214 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.758e-05/1.205, allocations: 8 kB / 1.214 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.779e-05/1.205, allocations: 15.42 kB / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/1.205, allocations: 0 / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of Templates: time 0.004099/1.209, allocations: 0.9916 MB / 1.215 GB, free: 5.508 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/jenkins/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: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