Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0014/0.0014, allocations: 113.3 kB / 15.71 MB, free: 0 / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 194.5 kB / 16.64 MB, free: 6.449 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.462/1.462, allocations: 222.9 MB / 240.3 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.504/2.504, allocations: 390.3 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001237, allocations: 68.05 kB / 0.9509 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3452, allocations: 140.4 MB / 1.088 GB, free: 1.422 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002002/0.3472, allocations: 0.7562 MB / 1.089 GB, free: 0.6641 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3489, allocations: 1.067 MB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.822e-05/0.3489, allocations: 4 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.941e-05/0.349, allocations: 7.875 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.428e-05/0.3491, allocations: 11.91 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.3494, allocations: 51.83 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.3496, allocations: 63.84 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.3498, allocations: 32.11 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.3499, allocations: 31.84 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.374e-05/0.35, allocations: 31.91 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/0.35, allocations: 4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.371e-05/0.3501, allocations: 19.98 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.043e-05/0.3502, allocations: 15.92 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.949e-05/0.3502, allocations: 35.84 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.3505, allocations: 75.69 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.3505, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.257e-06/0.3505, allocations: 4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.729e-06/0.3505, allocations: 4 kB / 1.09 GB, free: 15.19 MB / 0.8575 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.0008338/0.3514, allocations: 379.2 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.276e-05/0.3514, allocations: 15.95 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.468e-05/0.3515, allocations: 8.844 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.3517, allocations: 172.3 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.3517, allocations: 4.375 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.3518, allocations: 8.375 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.352, allocations: 70.22 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.352, allocations: 3.938 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.3521, allocations: 0 / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.3521, allocations: 0 / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.3523, allocations: 47.89 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000817/0.3531, allocations: 320.7 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.3533, allocations: 58.58 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3534, allocations: 32.95 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.3534, allocations: 4 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002629/0.3537, allocations: 79.36 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3537, allocations: 0 / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004404/0.3542, allocations: 121.5 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.3542, allocations: 63.33 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.3543, allocations: 117.8 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.3544, allocations: 29.7 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.157e-05/0.3545, allocations: 96.03 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.3545, allocations: 19.75 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.3546, allocations: 29.7 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3547, allocations: 326.7 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.3548, allocations: 27.97 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.355, allocations: 74.42 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.3552, allocations: 109.8 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3553, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002953/0.3556, allocations: 129.4 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3556, allocations: 8 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.3556, allocations: 8.203 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.3556, allocations: 4 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.3558, allocations: 19.92 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.3558, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.891e-05/0.3559, allocations: 11.98 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.3559, allocations: 7.984 kB / 1.092 GB, free: 12.57 MB / 0.8575 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.000111/0.356, allocations: 127.4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.356, allocations: 7.906 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.424e-05/0.3561, allocations: 12.38 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.3561, allocations: 4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3561, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3561, allocations: 3.984 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005121/0.3566, allocations: 382.3 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3566, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.154e-05/0.3567, allocations: 7.984 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3567, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.3567, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.3567, allocations: 7.938 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3567, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.3571, allocations: 199.4 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.758e-05/0.3571, allocations: 85.02 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.3572, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.623e-05/0.3573, allocations: 19.92 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.3573, allocations: 7.922 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.3573, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.272e-05/0.3574, allocations: 91.44 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3574, allocations: 0 / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002933/0.3577, allocations: 23.98 kB / 1.093 GB, free: 11.5 MB / 0.8575 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.0002553/0.358, allocations: 103.2 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003217/0.3583, allocations: 83.81 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3583, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.3584, allocations: 35.98 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.3588, allocations: 7.984 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006197/0.3594, allocations: 163.2 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.3598, allocations: 0.6885 MB / 1.094 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.312e-05/0.3599, allocations: 4 kB / 1.094 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.805e-05/0.3599, allocations: 11.44 kB / 1.094 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of SimCode: time 2.885e-06/0.3599, allocations: 0 / 1.094 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of Templates: time 0.004034/0.364, allocations: 0.9863 MB / 1.095 GB, free: 9.402 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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