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.001147/0.001147, allocations: 107.7 kB / 16.37 MB, free: 5.516 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.001127/0.001128, allocations: 193.3 kB / 17.31 MB, free: 5.16 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.366/1.366, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.491/2.491, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 62.66 kB / 0.8707 GB, free: 1.391 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.331, allocations: 151.6 MB / 1.019 GB, free: 9.793 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001925/0.3329, allocations: 0.75 MB / 1.02 GB, free: 9.035 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3342, allocations: 1.087 MB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.221e-05/0.3342, allocations: 0 / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.982e-05/0.3342, allocations: 3.938 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.547e-05/0.3343, allocations: 7.875 kB / 1.021 GB, free: 7.922 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.3346, allocations: 55.81 kB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.3347, allocations: 71.78 kB / 1.021 GB, free: 7.797 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.3348, allocations: 20.16 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.779e-05/0.3349, allocations: 35.86 kB / 1.021 GB, free: 7.738 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.771e-05/0.335, allocations: 31.84 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.541e-05/0.335, allocations: 4 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.112e-05/0.3351, allocations: 19.98 kB / 1.021 GB, free: 7.684 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.362e-05/0.3351, allocations: 19.97 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.949e-05/0.3351, allocations: 27.81 kB / 1.021 GB, free: 7.637 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.3353, allocations: 83.73 kB / 1.021 GB, free: 7.555 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3353, allocations: 0 / 1.021 GB, free: 7.555 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3353, allocations: 0 / 1.021 GB, free: 7.555 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.8e-05/0.3353, allocations: 0 / 1.021 GB, free: 7.555 MB / 0.795 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.0005173/0.3358, allocations: 383.1 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.3359, allocations: 8.625 kB / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.116e-05/0.3359, allocations: 8.844 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.336, allocations: 176.2 kB / 1.022 GB, free: 6.906 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.3361, allocations: 4.375 kB / 1.022 GB, free: 6.902 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.3361, allocations: 4.375 kB / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.3363, allocations: 66.17 kB / 1.022 GB, free: 6.828 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.3363, allocations: 7.922 kB / 1.022 GB, free: 6.82 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.3363, allocations: 8 kB / 1.022 GB, free: 6.812 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3363, allocations: 4 kB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.3365, allocations: 43.89 kB / 1.022 GB, free: 6.766 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005835/0.3371, allocations: 324.7 kB / 1.022 GB, free: 6.398 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.3372, allocations: 58.55 kB / 1.022 GB, free: 6.332 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.898e-05/0.3373, allocations: 28.97 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.3374, allocations: 96 / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.3375, allocations: 79.31 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 2.755e-06/0.3375, allocations: 0 / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0003851/0.3379, allocations: 133.5 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.338, allocations: 55.41 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.554e-05/0.3381, allocations: 121.8 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.3381, allocations: 29.7 kB / 1.022 GB, free: 5.844 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.592e-05/0.3382, allocations: 96.03 kB / 1.023 GB, free: 5.746 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.3382, allocations: 19.73 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-05/0.3382, allocations: 33.64 kB / 1.023 GB, free: 5.688 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.282e-05/0.3383, allocations: 322.8 kB / 1.023 GB, free: 5.363 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.3384, allocations: 31.97 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.3386, allocations: 74.36 kB / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/0.3388, allocations: 109.9 kB / 1.023 GB, free: 5.109 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3388, allocations: 4 kB / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003035/0.3391, allocations: 129.4 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.3391, allocations: 4 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3391, allocations: 4 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3392, allocations: 0 / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3393, allocations: 20.2 kB / 1.023 GB, free: 4.945 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.132e-05/0.3393, allocations: 7.984 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.366e-05/0.3394, allocations: 11.94 kB / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.3394, allocations: 8 kB / 1.023 GB, free: 4.918 MB / 0.795 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 8.636e-05/0.3395, allocations: 125.8 kB / 1.023 GB, free: 4.785 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.244e-05/0.3395, allocations: 3.906 kB / 1.023 GB, free: 4.781 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.3396, allocations: 12.38 kB / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3396, allocations: 0 / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3396, allocations: 0 / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3396, allocations: 4 kB / 1.023 GB, free: 4.766 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004211/0.34, allocations: 378.3 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.34, allocations: 0 / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.29e-05/0.3401, allocations: 11.92 kB / 1.024 GB, free: 4.328 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.3401, allocations: 4 kB / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.3401, allocations: 4 kB / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3401, allocations: 3.938 kB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3401, allocations: 4 kB / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.3404, allocations: 199.7 kB / 1.024 GB, free: 4.102 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.3405, allocations: 88.95 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.3405, allocations: 0 / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/0.3406, allocations: 11.92 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.223e-05/0.3406, allocations: 8 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.3406, allocations: 4 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.179e-05/0.3407, allocations: 95.27 kB / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3407, allocations: 0 / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000252/0.341, allocations: 12 kB / 1.024 GB, free: 3.867 MB / 0.795 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.0001712/0.3411, allocations: 115.2 kB / 1.024 GB, free: 3.746 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002601/0.3414, allocations: 76.08 kB / 1.024 GB, free: 3.672 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3414, allocations: 0 / 1.024 GB, free: 3.672 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.3415, allocations: 43.95 kB / 1.024 GB, free: 3.629 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.3418, allocations: 14.64 kB / 1.024 GB, free: 3.617 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003367/0.3421, allocations: 157.4 kB / 1.025 GB, free: 3.438 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.3424, allocations: 0.6926 MB / 1.025 GB, free: 2.719 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.348e-05/0.3424, allocations: 7.984 kB / 1.025 GB, free: 2.711 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.626e-05/0.3425, allocations: 11.44 kB / 1.025 GB, free: 2.699 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.3425, allocations: 0 / 1.025 GB, free: 2.699 MB / 0.795 GB Notification: Performance of Templates: time 0.003473/0.3459, allocations: 0.9692 MB / 1.026 GB, free: 1.77 MB / 0.795 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 -s cvode -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/jenkins1/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