Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001178/0.001178, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001716/0.001716, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.839/2.839, allocations: 437.7 MB / 0.7117 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003749, allocations: 12 kB / 0.8722 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8636/0.864, allocations: 153.8 MB / 1.022 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001141/0.8652, allocations: 477.4 kB / 1.023 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.8666, allocations: 1.043 MB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.525e-05/0.8667, allocations: 7.938 kB / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.8667, allocations: 7.984 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.862e-05/0.8668, allocations: 7.922 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002992/0.8671, allocations: 43.89 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.8672, allocations: 63.78 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.8673, allocations: 16.16 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.617e-05/0.8674, allocations: 23.88 kB / 1.024 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.707e-05/0.8675, allocations: 31.83 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.8675, allocations: 4 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.732e-05/0.8676, allocations: 19.98 kB / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.829e-05/0.8676, allocations: 11.98 kB / 1.024 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.685e-05/0.8677, allocations: 33.64 kB / 1.024 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.8678, allocations: 55.88 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.8678, allocations: 0 / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.344e-06/0.8678, allocations: 0 / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.8678, allocations: 0 / 1.024 GB, free: 14.21 MB / 0.7794 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.0006225/0.8685, allocations: 373.1 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.8685, allocations: 8.562 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.39e-05/0.8686, allocations: 7.906 kB / 1.025 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.8687, allocations: 171 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.8688, allocations: 8 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.8688, allocations: 7.938 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.869, allocations: 73.56 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.619e-06/0.869, allocations: 8 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.869, allocations: 0 / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.869, allocations: 0 / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.8692, allocations: 55.94 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006415/0.8699, allocations: 340.6 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.8701, allocations: 58.55 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.662e-05/0.8702, allocations: 40.97 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.8702, allocations: 0 / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002347/0.8704, allocations: 83.41 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.8704, allocations: 4 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004036/0.8709, allocations: 141.5 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.8709, allocations: 55.41 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.871, allocations: 133.6 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.871, allocations: 25.7 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.8711, allocations: 96.05 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.8711, allocations: 19.78 kB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-06/0.8712, allocations: 4 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.8713, allocations: 314.8 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.8714, allocations: 43.97 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.8716, allocations: 77.92 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001115/0.8717, allocations: 39.98 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8717, allocations: 0 / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002949/0.872, allocations: 145.4 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.8721, allocations: 9.562 kB / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.8721, allocations: 0 / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.8721, allocations: 7.938 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.8722, allocations: 20.2 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.8723, allocations: 4 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.875e-05/0.8724, allocations: 15.92 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.8724, allocations: 4 kB / 1.026 GB, free: 11.62 MB / 0.7794 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.8725, allocations: 129.7 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.289e-05/0.8725, allocations: 3.906 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.8726, allocations: 12.36 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.8726, allocations: 0 / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.8726, allocations: 4 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.8726, allocations: 0 / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004704/0.8731, allocations: 386.4 kB / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8731, allocations: 4 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.893e-05/0.8731, allocations: 8 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.8731, allocations: 0 / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.8732, allocations: 7.938 kB / 1.027 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.8732, allocations: 7.922 kB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.8732, allocations: 0 / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.8735, allocations: 211.8 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/0.8735, allocations: 81.02 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.8735, allocations: 3.984 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.763e-05/0.8736, allocations: 12 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.8737, allocations: 7.984 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.8737, allocations: 8 kB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.567e-05/0.8737, allocations: 95.2 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8738, allocations: 0 / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002413/0.874, allocations: 20 kB / 1.027 GB, free: 10.54 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001694/0.8742, allocations: 103.2 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002507/0.8744, allocations: 91.94 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.8744, allocations: 0 / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.8746, allocations: 40.03 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.8748, allocations: 16.27 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003183/0.8751, allocations: 173.3 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.8754, allocations: 0.6926 MB / 1.029 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.473e-05/0.8755, allocations: 8 kB / 1.029 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.8755, allocations: 15.42 kB / 1.029 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8755, allocations: 0 / 1.029 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of Templates: time 0.003533/0.879, allocations: 0.8414 MB / 1.029 GB, free: 8.547 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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