Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007248/0.007248, allocations: 98.42 kB / 15.73 MB, free: 5.551 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.001141/0.001141, allocations: 190.7 kB / 16.67 MB, free: 5.473 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.7/2.7, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.84 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9938/0.995, allocations: 159.1 MB / 1.221 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002054/0.9971, allocations: 0.7496 MB / 1.221 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001378/0.9984, allocations: 1.073 MB / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.572e-05/0.9985, allocations: 0 / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.9985, allocations: 11.86 kB / 1.222 GB, free: 428 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.838e-05/0.9986, allocations: 7.922 kB / 1.222 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.9989, allocations: 55.84 kB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.9991, allocations: 75.75 kB / 1.223 GB, free: 288 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.9992, allocations: 8.188 kB / 1.223 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.059e-05/0.9993, allocations: 31.86 kB / 1.223 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.933e-05/0.9994, allocations: 35.83 kB / 1.223 GB, free: 208 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.9994, allocations: 8 kB / 1.223 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.544e-05/0.9994, allocations: 19.98 kB / 1.223 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.558e-05/0.9995, allocations: 15.92 kB / 1.223 GB, free: 164 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.799e-05/0.9995, allocations: 27.86 kB / 1.223 GB, free: 136 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.9997, allocations: 80.67 kB / 1.223 GB, free: 56 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.9997, allocations: 4 kB / 1.223 GB, free: 52 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9997, allocations: 0 / 1.223 GB, free: 52 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.9997, allocations: 3.938 kB / 1.223 GB, free: 48 kB / 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.0006298/1, allocations: 383.3 kB / 1.223 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/1, allocations: 8.031 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.509e-05/1, allocations: 16.88 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/1.001, allocations: 188.1 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/1.001, allocations: 4.375 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/1.001, allocations: 4.375 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/1.001, allocations: 70.22 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/1.001, allocations: 3.938 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/1.001, allocations: 4 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/1.001, allocations: 0 / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/1.001, allocations: 47.89 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006497/1.002, allocations: 316.8 kB / 1.224 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/1.002, allocations: 54.59 kB / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.277e-05/1.002, allocations: 28.95 kB / 1.224 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/1.002, allocations: 0 / 1.224 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/1.002, allocations: 83.33 kB / 1.224 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/1.002, allocations: 0 / 1.224 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004112/1.003, allocations: 129.6 kB / 1.224 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/1.003, allocations: 55.34 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/1.003, allocations: 129.7 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/1.003, allocations: 25.7 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/1.003, allocations: 96.14 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/1.003, allocations: 15.84 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.018e-05/1.003, allocations: 33.7 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001288/1.003, allocations: 326.8 kB / 1.225 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/1.003, allocations: 27.97 kB / 1.225 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/1.003, allocations: 73.98 kB / 1.225 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/1.003, allocations: 105.9 kB / 1.225 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/1.003, allocations: 3.938 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002887/1.004, allocations: 133.5 kB / 1.225 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/1.004, allocations: 12.22 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/1.004, allocations: 0 / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/1.004, allocations: 4 kB / 1.225 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/1.004, allocations: 15.98 kB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/1.004, allocations: 3.938 kB / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.34e-05/1.004, allocations: 19.88 kB / 1.225 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/1.004, allocations: 8 kB / 1.225 GB, free: 13.39 MB / 0.9512 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.0001113/1.004, allocations: 120.2 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/1.004, allocations: 11.95 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/1.004, allocations: 12.36 kB / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/1.004, allocations: 4 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/1.004, allocations: 0 / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/1.004, allocations: 0 / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004628/1.005, allocations: 374.3 kB / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/1.005, allocations: 0 / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.942e-05/1.005, allocations: 8 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/1.005, allocations: 4 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/1.005, allocations: 0 / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/1.005, allocations: 7.922 kB / 1.226 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/1.005, allocations: 8.391 kB / 1.226 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/1.005, allocations: 199.4 kB / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/1.005, allocations: 81.06 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/1.005, allocations: 15.98 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.01e-05/1.005, allocations: 7.938 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/1.005, allocations: 7.969 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/1.005, allocations: 4 kB / 1.226 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.734e-05/1.005, allocations: 91.27 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/1.005, allocations: 0 / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002573/1.006, allocations: 16 kB / 1.226 GB, free: 12.34 MB / 0.9512 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.0001911/1.006, allocations: 107.2 kB / 1.226 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002743/1.006, allocations: 87.75 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.006, allocations: 0 / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/1.006, allocations: 35.97 kB / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/1.006, allocations: 4.438 kB / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/1.007, allocations: 166 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/1.007, allocations: 0.6885 MB / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.135e-05/1.007, allocations: 4 kB / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.988e-05/1.007, allocations: 15.42 kB / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of SimCode: time 3.1e-07/1.007, allocations: 0 / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of Templates: time 0.003338/1.01, allocations: 0.9783 MB / 1.228 GB, free: 10.24 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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