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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007887/0.007887, allocations: 102.7 kB / 15.73 MB, free: 5.961 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.00153/0.00153, allocations: 190 kB / 16.67 MB, free: 5.883 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.515/1.515, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.457/2.457, allocations: 390.2 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 67.33 kB / 0.9509 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3707, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00209/0.3728, allocations: 0.7445 MB / 1.089 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.3743, allocations: 1.079 MB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.539e-05/0.3743, allocations: 4 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.821e-05/0.3744, allocations: 7.922 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.491e-05/0.3745, allocations: 7.875 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003401/0.3748, allocations: 51.83 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000122/0.3749, allocations: 71.83 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.3751, allocations: 20.17 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.671e-05/0.3752, allocations: 35.8 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.787e-05/0.3752, allocations: 31.91 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.3753, allocations: 4 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.184e-05/0.3753, allocations: 19.98 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.3754, allocations: 19.91 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.3754, allocations: 31.86 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.3756, allocations: 71.75 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.3756, allocations: 4 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3756, allocations: 3.938 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.3756, allocations: 0 / 1.09 GB, free: 15.29 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.0005864/0.3762, allocations: 387.2 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3763, allocations: 12.03 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.489e-05/0.3763, allocations: 8.844 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.3765, allocations: 172.2 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.3765, allocations: 4.375 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.756e-05/0.3765, allocations: 8.375 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.3767, allocations: 70.16 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.3767, allocations: 3.938 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.3768, allocations: 4 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3768, allocations: 0 / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.3769, allocations: 51.89 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006459/0.3776, allocations: 320.7 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.3778, allocations: 54.56 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.3779, allocations: 32.95 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.3779, allocations: 8.031 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001996/0.3781, allocations: 71.38 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.3782, allocations: 4 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004332/0.3786, allocations: 129.8 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.3787, allocations: 55.41 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.3788, allocations: 113.8 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.3788, allocations: 33.69 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.3788, allocations: 88.05 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.3789, allocations: 27.67 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.3789, allocations: 33.7 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3791, allocations: 326.8 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.3792, allocations: 27.92 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.3793, allocations: 73.97 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/0.3796, allocations: 105.9 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3796, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003006/0.3799, allocations: 137.3 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3799, allocations: 8 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3799, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.3799, allocations: 4 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.3801, allocations: 20.2 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.3801, allocations: 12 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.863e-05/0.3802, allocations: 7.984 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.3802, allocations: 8 kB / 1.092 GB, free: 12.64 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.0001032/0.3803, allocations: 123.5 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.282e-05/0.3803, allocations: 7.906 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.052e-05/0.3804, allocations: 16.36 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3804, allocations: 0 / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.3804, allocations: 4 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.3804, allocations: 3.938 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004954/0.3809, allocations: 382.2 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3809, allocations: 0 / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.279e-05/0.381, allocations: 8 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.381, allocations: 0 / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.381, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.381, allocations: 7.922 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.381, allocations: 4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.3813, allocations: 191.5 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.163e-05/0.3814, allocations: 85.02 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.3814, allocations: 7.984 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.196e-05/0.3815, allocations: 7.938 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.3815, allocations: 11.98 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.3815, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.327e-05/0.3816, allocations: 95.2 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3816, allocations: 0 / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002462/0.3818, allocations: 20 kB / 1.093 GB, free: 11.59 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.0001697/0.382, allocations: 99.25 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002761/0.3823, allocations: 83.94 kB / 1.094 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3823, allocations: 0 / 1.094 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.3824, allocations: 39.91 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.3827, allocations: 8 kB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003612/0.3831, allocations: 162.2 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.3834, allocations: 0.6927 MB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.347e-05/0.3834, allocations: 4 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.3834, allocations: 15.42 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.3834, allocations: 0 / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of Templates: time 0.00338/0.3868, allocations: 0.9796 MB / 1.095 GB, free: 9.492 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