Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001432/0.001432, allocations: 109.7 kB / 15.99 MB, free: 5.891 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.001674/0.001674, allocations: 194.9 kB / 16.91 MB, free: 5.746 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.394/1.394, allocations: 222.9 MB / 240.6 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.399/2.399, allocations: 390.2 MB / 0.665 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 63.91 kB / 0.8127 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7053/0.7069, allocations: 140.4 MB / 0.9498 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001874/0.7088, allocations: 0.8103 MB / 0.9506 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.7098, allocations: 1.068 MB / 0.9516 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.7099, allocations: 5.375 kB / 0.9516 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.996e-05/0.7099, allocations: 3.938 kB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.652e-05/0.71, allocations: 5.312 kB / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.7103, allocations: 49.64 kB / 0.9517 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.633e-05/0.7104, allocations: 68.66 kB / 0.9518 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.7105, allocations: 20.42 kB / 0.9518 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.853e-05/0.7106, allocations: 30.91 kB / 0.9518 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.209e-05/0.7106, allocations: 37.47 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.7106, allocations: 6.281 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.56e-05/0.7107, allocations: 20.17 kB / 0.9519 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.7107, allocations: 9.469 kB / 0.9519 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.992e-05/0.7108, allocations: 36.69 kB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.7109, allocations: 49 kB / 0.952 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.7109, allocations: 3.984 kB / 0.952 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7109, allocations: 1.469 kB / 0.952 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.7109, allocations: 0 / 0.952 GB, free: 7.367 MB / 0.7169 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.0004832/0.7114, allocations: 378.7 kB / 0.9523 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.7115, allocations: 9.375 kB / 0.9523 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.881e-05/0.7115, allocations: 8.844 kB / 0.9524 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.425e-05/0.7116, allocations: 180.5 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.7116, allocations: 5.812 kB / 0.9525 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.7116, allocations: 8.156 kB / 0.9525 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.7118, allocations: 61.83 kB / 0.9526 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.7118, allocations: 9.188 kB / 0.9526 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.7119, allocations: 4 kB / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.7119, allocations: 5.25 kB / 0.9526 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000168/0.712, allocations: 40.42 kB / 0.9527 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005721/0.7126, allocations: 324.3 kB / 0.953 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.7128, allocations: 69.16 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.066e-05/0.7129, allocations: 30.69 kB / 0.9531 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.7129, allocations: 1.469 kB / 0.9531 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001911/0.7131, allocations: 74.47 kB / 0.9531 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.7131, allocations: 0 / 0.9531 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003817/0.7135, allocations: 144.3 kB / 0.9533 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.7135, allocations: 52.72 kB / 0.9533 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.556e-05/0.7136, allocations: 125.3 kB / 0.9534 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.7136, allocations: 31.02 kB / 0.9535 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.262e-05/0.7137, allocations: 90.36 kB / 0.9536 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.529e-05/0.7137, allocations: 14.42 kB / 0.9536 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.46e-05/0.7137, allocations: 26.78 kB / 0.9536 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.874e-05/0.7138, allocations: 324.3 kB / 0.9539 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.962e-05/0.7139, allocations: 32.62 kB / 0.9539 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.714, allocations: 74.7 kB / 0.954 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.7142, allocations: 114.9 kB / 0.9541 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.7142, allocations: 0 / 0.9541 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002818/0.7145, allocations: 126.5 kB / 0.9542 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.7146, allocations: 5.25 kB / 0.9542 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.7146, allocations: 5.781 kB / 0.9542 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.7146, allocations: 1.938 kB / 0.9542 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.7147, allocations: 24.67 kB / 0.9543 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.7147, allocations: 2.062 kB / 0.9543 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.528e-05/0.7148, allocations: 21.48 kB / 0.9543 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.7148, allocations: 5.688 kB / 0.9543 GB, free: 5.156 MB / 0.7169 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 6.327e-05/0.7149, allocations: 118.3 kB / 0.9544 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.355e-05/0.7149, allocations: 10.23 kB / 0.9544 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.479e-05/0.715, allocations: 10.94 kB / 0.9544 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.715, allocations: 0 / 0.9544 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.715, allocations: 5.094 kB / 0.9544 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.715, allocations: 0 / 0.9544 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003823/0.7154, allocations: 373.4 kB / 0.9548 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.7154, allocations: 0 / 0.9548 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.352e-05/0.7154, allocations: 9.453 kB / 0.9548 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.7155, allocations: 1.125 kB / 0.9548 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.7155, allocations: 5.156 kB / 0.9548 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.7155, allocations: 11.88 kB / 0.9548 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.7155, allocations: 1.156 kB / 0.9548 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002459/0.7157, allocations: 196.3 kB / 0.955 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.123e-05/0.7158, allocations: 83.61 kB / 0.9551 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.7158, allocations: 0 / 0.9551 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.29e-05/0.7159, allocations: 11.77 kB / 0.9551 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.7159, allocations: 7.812 kB / 0.9551 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.7159, allocations: 5.125 kB / 0.9551 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.501e-05/0.716, allocations: 94.02 kB / 0.9552 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.716, allocations: 0 / 0.9552 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002664/0.7162, allocations: 12.53 kB / 0.9552 GB, free: 4.273 MB / 0.7169 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.0001612/0.7164, allocations: 114.2 kB / 0.9553 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002713/0.7167, allocations: 81.7 kB / 0.9554 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.7167, allocations: 3.938 kB / 0.9554 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.7168, allocations: 33.03 kB / 0.9554 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.7171, allocations: 16.42 kB / 0.9554 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003402/0.7174, allocations: 211.1 kB / 0.9557 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.7176, allocations: 0.6881 MB / 0.9563 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.192e-05/0.7176, allocations: 15.77 kB / 0.9563 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7176, allocations: 1.312 kB / 0.9563 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of Templates: time 0.002624/0.7203, allocations: 1.043 MB / 0.9574 GB, free: 2.664 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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