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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001308/0.001308, allocations: 110.4 kB / 16.41 MB, free: 6.488 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.001291/0.001291, allocations: 186.9 kB / 17.34 MB, free: 5.766 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.304/1.304, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.482/2.482, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 67.89 kB / 1.055 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7573/0.7588, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001921/0.7607, allocations: 0.7494 MB / 1.209 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.7621, allocations: 1.077 MB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.433e-05/0.7622, allocations: 4 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.32e-05/0.7622, allocations: 7.875 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.595e-05/0.7623, allocations: 11.86 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.7626, allocations: 55.2 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.7627, allocations: 67.84 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.7628, allocations: 28.16 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.934e-05/0.7629, allocations: 31.8 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/0.763, allocations: 31.91 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.763, allocations: 4 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.855e-05/0.7631, allocations: 19.98 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.326e-05/0.7631, allocations: 19.91 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.385e-05/0.7632, allocations: 31.86 kB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.7633, allocations: 71.75 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.7633, allocations: 0 / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7634, allocations: 4 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.7634, allocations: 0 / 1.211 GB, free: 11.37 MB / 0.9356 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.0005064/0.7639, allocations: 380.9 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.7639, allocations: 16.02 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.94e-05/0.764, allocations: 4.844 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.7641, allocations: 176.2 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.7641, allocations: 4.375 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.7641, allocations: 8.375 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.7643, allocations: 66.22 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.7644, allocations: 7.938 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.7644, allocations: 0 / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.7644, allocations: 0 / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.7646, allocations: 47.89 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006039/0.7652, allocations: 316.7 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001589/0.7654, allocations: 58.55 kB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.7655, allocations: 36.98 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.7655, allocations: 7.984 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.7657, allocations: 75.28 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.7657, allocations: 4 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004057/0.7661, allocations: 121.6 kB / 1.212 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.7662, allocations: 59.41 kB / 1.212 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.969e-05/0.7663, allocations: 117.8 kB / 1.212 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.7663, allocations: 33.64 kB / 1.212 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.829e-05/0.7664, allocations: 88.12 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.7664, allocations: 23.73 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.7664, allocations: 37.7 kB / 1.212 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.7666, allocations: 326.8 kB / 1.213 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.7667, allocations: 23.98 kB / 1.213 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.7668, allocations: 73.92 kB / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.767, allocations: 109.9 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.767, allocations: 0 / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003051/0.7674, allocations: 133.4 kB / 1.213 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.7674, allocations: 11.98 kB / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.7674, allocations: 0 / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.7674, allocations: 4.219 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.7675, allocations: 19.98 kB / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.7676, allocations: 7.938 kB / 1.213 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.523e-05/0.7676, allocations: 11.92 kB / 1.213 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.7677, allocations: 4 kB / 1.213 GB, free: 8.738 MB / 0.9356 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.664e-05/0.7678, allocations: 125.8 kB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.403e-05/0.7678, allocations: 7.906 kB / 1.213 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.583e-05/0.7678, allocations: 8.375 kB / 1.213 GB, free: 8.586 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.7678, allocations: 8 kB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.7678, allocations: 0 / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.7678, allocations: 3.984 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.7683, allocations: 378.3 kB / 1.213 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.7683, allocations: 0 / 1.213 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.989e-05/0.7683, allocations: 7.984 kB / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.7683, allocations: 0 / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.7684, allocations: 0 / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.7684, allocations: 11.94 kB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.7684, allocations: 0 / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002724/0.7687, allocations: 195.8 kB / 1.214 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.553e-05/0.7687, allocations: 85.02 kB / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.7687, allocations: 0 / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.7688, allocations: 15.92 kB / 1.214 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.7688, allocations: 7.984 kB / 1.214 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-06/0.7689, allocations: 4 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.403e-05/0.7689, allocations: 99.8 kB / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7689, allocations: 0 / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002496/0.7692, allocations: 20 kB / 1.214 GB, free: 7.676 MB / 0.9356 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.0001392/0.7693, allocations: 99.25 kB / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002727/0.7696, allocations: 83.95 kB / 1.214 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.7696, allocations: 0 / 1.214 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.7697, allocations: 39.97 kB / 1.214 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.77, allocations: 14.11 kB / 1.214 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003336/0.7703, allocations: 200 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.7706, allocations: 0.6924 MB / 1.215 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.107e-05/0.7706, allocations: 11.44 kB / 1.215 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of SimCode: time 2.71e-07/0.7706, allocations: 0 / 1.215 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of Templates: time 0.002772/0.7734, allocations: 1.053 MB / 1.216 GB, free: 5.434 MB / 0.9356 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/jenkins1/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y