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.00788/0.00788, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001681/0.001681, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.16 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.443/2.443, allocations: 390.2 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 64.25 kB / 0.9509 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3399, allocations: 140.4 MB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002116/0.3421, allocations: 0.7522 MB / 1.089 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.3435, allocations: 1.075 MB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.763e-05/0.3436, allocations: 3.938 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.251e-05/0.3436, allocations: 7.875 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.663e-05/0.3437, allocations: 15.84 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.3441, allocations: 43.91 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001342/0.3442, allocations: 79.75 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.3443, allocations: 12.19 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.282e-05/0.3444, allocations: 31.86 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.049e-05/0.3445, allocations: 35.89 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.3445, allocations: 4 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.068e-05/0.3446, allocations: 23.98 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.3446, allocations: 15.92 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.576e-05/0.3447, allocations: 27.86 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.3449, allocations: 83.62 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3449, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3449, allocations: 3.938 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.139e-05/0.3449, allocations: 0 / 1.09 GB, free: 15.24 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.0006402/0.3455, allocations: 387.2 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3456, allocations: 8.031 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.75e-05/0.3456, allocations: 8.891 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.3458, allocations: 176.3 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.3458, allocations: 4.375 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.3458, allocations: 4.375 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.3461, allocations: 70.16 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3461, allocations: 3.938 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.3461, allocations: 4 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3461, allocations: 8 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.3463, allocations: 39.95 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006711/0.347, allocations: 324.7 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.3472, allocations: 58.59 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.3473, allocations: 36.94 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.3473, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.3475, allocations: 75.38 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3475, allocations: 0 / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004299/0.348, allocations: 141.5 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.348, allocations: 51.41 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.958e-05/0.3481, allocations: 117.8 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.3482, allocations: 29.7 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.3482, allocations: 100 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/0.3483, allocations: 11.91 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.067e-05/0.3483, allocations: 29.7 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3484, allocations: 330.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.3486, allocations: 27.98 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.3487, allocations: 74.36 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002387/0.3489, allocations: 113.8 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.349, allocations: 4 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002943/0.3493, allocations: 129.5 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.3493, allocations: 4 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3493, allocations: 8 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.3493, allocations: 0 / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.3494, allocations: 20.14 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.3495, allocations: 8 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.3495, allocations: 15.92 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.3496, allocations: 4 kB / 1.092 GB, free: 12.6 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 9.052e-05/0.3497, allocations: 123.8 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.3497, allocations: 7.953 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.3497, allocations: 8.375 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3497, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.3497, allocations: 3.984 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3497, allocations: 7.938 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004629/0.3502, allocations: 370.4 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3502, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.279e-05/0.3503, allocations: 7.984 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3503, allocations: 7.938 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.3503, allocations: 4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3503, allocations: 3.938 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3503, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002845/0.3506, allocations: 199.9 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-05/0.3507, allocations: 85.06 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.3507, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-05/0.3508, allocations: 11.92 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.3508, allocations: 15.92 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-06/0.3508, allocations: 4 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.623e-05/0.3509, allocations: 95.27 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3509, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002445/0.3512, allocations: 15.94 kB / 1.093 GB, free: 11.55 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.0001741/0.3513, allocations: 111.2 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002884/0.3516, allocations: 84.23 kB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3517, allocations: 0 / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.3518, allocations: 31.97 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.352, allocations: 13.66 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003641/0.3524, allocations: 166 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.3527, allocations: 0.6924 MB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.415e-05/0.3528, allocations: 4 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.686e-05/0.3528, allocations: 11.44 kB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3528, allocations: 0 / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of Templates: time 0.003392/0.3562, allocations: 0.9775 MB / 1.095 GB, free: 9.445 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