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.00121/0.00121, allocations: 111.2 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.001105/0.001105, allocations: 187 kB / 17.34 MB, free: 5.762 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.547/2.547, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001483, allocations: 67.89 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8527/0.8542, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001848/0.8561, allocations: 0.7572 MB / 1.168 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.8575, allocations: 1.072 MB / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.026e-05/0.8576, allocations: 0 / 1.169 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.634e-05/0.8577, allocations: 7.922 kB / 1.169 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.109e-05/0.8578, allocations: 15.86 kB / 1.169 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.8581, allocations: 49.47 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.8582, allocations: 75.75 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.8584, allocations: 16.19 kB / 1.169 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.344e-05/0.8584, allocations: 27.92 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.829e-05/0.8585, allocations: 39.83 kB / 1.169 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.8585, allocations: 8 kB / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.217e-05/0.8586, allocations: 27.92 kB / 1.169 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.5e-05/0.8586, allocations: 15.92 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.528e-05/0.8587, allocations: 31.86 kB / 1.169 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.8589, allocations: 67.75 kB / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.8589, allocations: 4 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8589, allocations: 0 / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.729e-06/0.8589, allocations: 0 / 1.169 GB, free: 1.621 MB / 0.8887 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.0006193/0.8595, allocations: 385 kB / 1.17 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.8596, allocations: 8.922 kB / 1.17 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.293e-05/0.8596, allocations: 8.844 kB / 1.17 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.8598, allocations: 180.2 kB / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.8598, allocations: 8.312 kB / 1.17 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.8598, allocations: 8.375 kB / 1.17 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.86, allocations: 70.16 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.86, allocations: 3.938 kB / 1.17 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.8601, allocations: 7.984 kB / 1.17 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.8601, allocations: 0 / 1.17 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.8602, allocations: 43.95 kB / 1.17 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006347/0.8609, allocations: 324.6 kB / 1.17 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.861, allocations: 54.56 kB / 1.171 GB, free: 408 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.595e-05/0.8611, allocations: 32.95 kB / 1.171 GB, free: 372 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.8612, allocations: 4 kB / 1.171 GB, free: 368 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.8614, allocations: 79.31 kB / 1.171 GB, free: 276 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.8614, allocations: 0 / 1.171 GB, free: 276 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0003996/0.8618, allocations: 133.6 kB / 1.171 GB, free: 136 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.8619, allocations: 51.41 kB / 1.171 GB, free: 72 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.862, allocations: 129.7 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.862, allocations: 25.7 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.52e-05/0.8621, allocations: 92.14 kB / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.8621, allocations: 11.81 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.287e-05/0.8622, allocations: 33.7 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.8623, allocations: 330.8 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.8624, allocations: 27.97 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.8625, allocations: 73.92 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.8627, allocations: 101.9 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.8627, allocations: 7.938 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002949/0.863, allocations: 137.3 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.8631, allocations: 8 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.8631, allocations: 0 / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.8631, allocations: 4 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.8632, allocations: 20.2 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.8633, allocations: 4 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.489e-05/0.8633, allocations: 15.92 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.8634, allocations: 8 kB / 1.172 GB, free: 14.98 MB / 0.9044 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.278e-05/0.8635, allocations: 121.7 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.8635, allocations: 7.906 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.295e-05/0.8635, allocations: 12.36 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.8635, allocations: 4 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.8635, allocations: 0 / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.8636, allocations: 4 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004457/0.864, allocations: 374.3 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.864, allocations: 4 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-05/0.8641, allocations: 4 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.8641, allocations: 0 / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.8641, allocations: 3.938 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.8641, allocations: 7.922 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.8641, allocations: 8 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.8644, allocations: 191.8 kB / 1.173 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.8644, allocations: 81.02 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.8645, allocations: 11.98 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.454e-05/0.8646, allocations: 7.938 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.8646, allocations: 3.984 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.8646, allocations: 8 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.395e-05/0.8647, allocations: 91.27 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8647, allocations: 0 / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002573/0.8649, allocations: 16 kB / 1.173 GB, free: 13.93 MB / 0.9044 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.0001678/0.8651, allocations: 103.2 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002935/0.8654, allocations: 92.11 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.8654, allocations: 0 / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.8656, allocations: 43.91 kB / 1.173 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.8658, allocations: 10.34 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004238/0.8663, allocations: 187.7 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.8666, allocations: 0.6926 MB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.261e-05/0.8666, allocations: 15.44 kB / 1.174 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.8666, allocations: 4 kB / 1.174 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of Templates: time 0.002789/0.8694, allocations: 1.048 MB / 1.175 GB, free: 11.69 MB / 0.9044 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/jenkins1/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y