Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.SampleTriggerNegativeStartTime,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.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_10_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.001383/0.001383, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001496/0.001496, allocations: 191.2 kB / 16.25 MB, free: 6.633 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.424/1.424, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.694/2.694, allocations: 437 MB / 0.71 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 71.89 kB / 0.8688 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7359/0.7381, allocations: 151.6 MB / 1.017 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002252/0.7404, allocations: 0.8242 MB / 1.018 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.7417, allocations: 1.066 MB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.777e-05/0.7418, allocations: 0 / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.604e-05/0.7418, allocations: 7.875 kB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.556e-05/0.7419, allocations: 7.938 kB / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.7422, allocations: 43.95 kB / 1.019 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.7423, allocations: 71.78 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.7425, allocations: 24.16 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.958e-05/0.7426, allocations: 31.91 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.967e-05/0.7426, allocations: 31.84 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.7426, allocations: 8 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.062e-05/0.7427, allocations: 19.98 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.7428, allocations: 11.94 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.7428, allocations: 35.84 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.743, allocations: 79.73 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.743, allocations: 4 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.684e-06/0.743, allocations: 0 / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.936e-06/0.743, allocations: 0 / 1.019 GB, free: 0.5859 MB / 0.7637 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.0005866/0.7436, allocations: 381.2 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.7436, allocations: 8.031 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/0.7437, allocations: 4.938 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.7438, allocations: 184.1 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.7439, allocations: 4.375 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.024e-05/0.7439, allocations: 8.375 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.7441, allocations: 66.23 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.7441, allocations: 7.875 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.7441, allocations: 3.984 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.7441, allocations: 0 / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.7443, allocations: 43.91 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006892/0.745, allocations: 324.7 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.7452, allocations: 58.58 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.595e-05/0.7453, allocations: 28.97 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.7453, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.7456, allocations: 83.36 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.7456, allocations: 0 / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004482/0.746, allocations: 129.5 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.7461, allocations: 55.34 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.7462, allocations: 129.8 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.7462, allocations: 25.7 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.915e-05/0.7463, allocations: 96.05 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/0.7463, allocations: 15.8 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.132e-05/0.7464, allocations: 25.72 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.7466, allocations: 326.8 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.7467, allocations: 27.97 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.7468, allocations: 77.97 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.7471, allocations: 109.8 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.7471, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003014/0.7474, allocations: 133.7 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.7474, allocations: 8 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.7474, allocations: 320 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.853e-05/0.7475, allocations: 4 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.7476, allocations: 19.92 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.7476, allocations: 7.922 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.645e-05/0.7477, allocations: 15.84 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.7477, allocations: 15.92 kB / 1.021 GB, free: 13.94 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 (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.0001066/0.7479, allocations: 126.4 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.7479, allocations: 7.906 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.355e-05/0.7479, allocations: 8.375 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.7479, allocations: 4 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.7479, allocations: 0 / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7479, allocations: 0 / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004913/0.7484, allocations: 366.4 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.7485, allocations: 8 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.388e-05/0.7485, allocations: 7.984 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.7485, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.7485, allocations: 0 / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.7486, allocations: 3.938 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.7486, allocations: 4 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003267/0.7489, allocations: 211.4 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.75e-05/0.749, allocations: 81.02 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.749, allocations: 11.98 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.588e-05/0.7491, allocations: 11.92 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.7491, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.7492, allocations: 4 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.641e-05/0.7492, allocations: 91.27 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7492, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000252/0.7495, allocations: 16 kB / 1.022 GB, free: 12.89 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 (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.0002095/0.7497, allocations: 115.2 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002994/0.75, allocations: 79.83 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.75, allocations: 0 / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.7501, allocations: 35.97 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.7504, allocations: 17.36 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003986/0.7508, allocations: 166.2 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.7512, allocations: 0.6884 MB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.84e-05/0.7512, allocations: 15.98 kB / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.7512, allocations: 11.44 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of SimCode: time 1.793e-06/0.7512, allocations: 0 / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of Templates: time 0.003565/0.7548, allocations: 0.9118 MB / 1.024 GB, free: 10.84 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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