Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007796/0.007796, allocations: 95.39 kB / 15.73 MB, free: 6.039 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.001518/0.001518, allocations: 197.9 kB / 16.68 MB, free: 5.969 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.603/1.603, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.063/3.063, allocations: 472.6 MB / 0.7453 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 60.12 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3659, allocations: 159.9 MB / 1.226 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002281/0.3683, allocations: 0.7458 MB / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001486/0.3698, allocations: 1.073 MB / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.613e-05/0.3699, allocations: 0 / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.59e-05/0.3699, allocations: 3.938 kB / 1.227 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.791e-05/0.37, allocations: 15.86 kB / 1.227 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.3704, allocations: 55.83 kB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000126/0.3705, allocations: 71.81 kB / 1.228 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.3707, allocations: 24.16 kB / 1.228 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.328e-05/0.3708, allocations: 31.86 kB / 1.228 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.245e-05/0.3708, allocations: 27.91 kB / 1.228 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.3709, allocations: 4 kB / 1.228 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.843e-05/0.371, allocations: 27.97 kB / 1.228 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.236e-05/0.371, allocations: 11.92 kB / 1.228 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.371, allocations: 35.86 kB / 1.228 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.3712, allocations: 87.56 kB / 1.228 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3712, allocations: 0 / 1.228 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.546e-06/0.3713, allocations: 0 / 1.228 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.3713, allocations: 0 / 1.228 GB, free: 6.992 MB / 0.9825 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.0005992/0.3719, allocations: 383.1 kB / 1.228 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3719, allocations: 8.031 kB / 1.228 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.874e-05/0.372, allocations: 8.891 kB / 1.228 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.3721, allocations: 176.3 kB / 1.228 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3722, allocations: 4.375 kB / 1.228 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.3722, allocations: 4.375 kB / 1.228 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.3724, allocations: 70.16 kB / 1.228 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.3724, allocations: 3.938 kB / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3725, allocations: 0 / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3725, allocations: 7.938 kB / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.3726, allocations: 43.95 kB / 1.228 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007014/0.3734, allocations: 328.7 kB / 1.229 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.3735, allocations: 46.56 kB / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3737, allocations: 36.95 kB / 1.229 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/0.3737, allocations: 4 kB / 1.229 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002362/0.3739, allocations: 87.31 kB / 1.229 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.3739, allocations: 0 / 1.229 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004439/0.3744, allocations: 129.7 kB / 1.229 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.3744, allocations: 55.39 kB / 1.229 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.3746, allocations: 126.1 kB / 1.229 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.3746, allocations: 25.7 kB / 1.229 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.225e-05/0.3747, allocations: 100.1 kB / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.3747, allocations: 7.906 kB / 1.229 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.3748, allocations: 33.7 kB / 1.229 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3749, allocations: 326.7 kB / 1.23 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.375, allocations: 23.98 kB / 1.23 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.3751, allocations: 78.03 kB / 1.23 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.3754, allocations: 113.8 kB / 1.23 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3754, allocations: 0 / 1.23 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003069/0.3757, allocations: 137.5 kB / 1.23 GB, free: 4.406 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.3757, allocations: 4 kB / 1.23 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3757, allocations: 4 kB / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3757, allocations: 0 / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.3759, allocations: 19.92 kB / 1.23 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3759, allocations: 4 kB / 1.23 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.087e-05/0.376, allocations: 11.94 kB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.376, allocations: 8 kB / 1.23 GB, free: 4.355 MB / 0.9825 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.582e-05/0.3761, allocations: 134.3 kB / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.356e-05/0.3761, allocations: 7.953 kB / 1.23 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.725e-05/0.3761, allocations: 8.375 kB / 1.23 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3761, allocations: 0 / 1.23 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3762, allocations: 3.984 kB / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.3762, allocations: 0 / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004843/0.3767, allocations: 370.5 kB / 1.231 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3767, allocations: 0 / 1.231 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.391e-05/0.3767, allocations: 15.91 kB / 1.231 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3767, allocations: 4 kB / 1.231 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.3768, allocations: 0 / 1.231 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3768, allocations: 3.938 kB / 1.231 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3768, allocations: 0 / 1.231 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.3771, allocations: 203.4 kB / 1.231 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.092e-05/0.3771, allocations: 85.06 kB / 1.231 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.3771, allocations: 4 kB / 1.231 GB, free: 3.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.607e-05/0.3772, allocations: 11.92 kB / 1.231 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.3773, allocations: 11.92 kB / 1.231 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.3773, allocations: 0 / 1.231 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.417e-05/0.3774, allocations: 95.27 kB / 1.231 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3774, allocations: 3.938 kB / 1.231 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002606/0.3776, allocations: 16 kB / 1.231 GB, free: 3.293 MB / 0.9825 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.0001798/0.3778, allocations: 111.2 kB / 1.231 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002827/0.3781, allocations: 79.86 kB / 1.231 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3781, allocations: 0 / 1.231 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.3782, allocations: 36.41 kB / 1.231 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.3785, allocations: 19.94 kB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000377/0.3789, allocations: 161.9 kB / 1.231 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.3792, allocations: 0.6885 MB / 1.232 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.638e-05/0.3792, allocations: 4 kB / 1.232 GB, free: 2.137 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.262e-05/0.3793, allocations: 15.44 kB / 1.232 GB, free: 2.121 MB / 0.9825 GB Notification: Performance of SimCode: time 2.61e-07/0.3793, allocations: 4 kB / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of Templates: time 0.00358/0.3829, allocations: 0.9688 MB / 1.233 GB, free: 1.191 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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