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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009063/0.0009062, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001027/0.001027, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.65/2.65, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003868/0.000387, allocations: 15.98 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9207/0.9211, allocations: 142.4 MB / 0.9545 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.0009094/0.922, allocations: 465.2 kB / 0.9549 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001311/0.9233, allocations: 1.058 MB / 0.9559 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.545e-05/0.9234, allocations: 1.125 kB / 0.9559 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.101e-05/0.9234, allocations: 7.922 kB / 0.9559 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.39e-05/0.9235, allocations: 9.016 kB / 0.956 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.9239, allocations: 44.02 kB / 0.956 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.924, allocations: 61.72 kB / 0.9561 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.9242, allocations: 14.44 kB / 0.9561 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.298e-05/0.9243, allocations: 25.83 kB / 0.9561 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.276e-05/0.9243, allocations: 29.36 kB / 0.9561 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.9244, allocations: 2.406 kB / 0.9561 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.863e-05/0.9245, allocations: 20.89 kB / 0.9561 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.376e-05/0.9245, allocations: 14.95 kB / 0.9562 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.353e-05/0.9246, allocations: 30.67 kB / 0.9562 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.9247, allocations: 48.88 kB / 0.9562 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/0.9247, allocations: 4 kB / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.976e-06/0.9247, allocations: 0 / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.9247, allocations: 0 / 0.9562 GB, free: 6.273 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.0006155/0.9253, allocations: 375.5 kB / 0.9566 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.9254, allocations: 13.72 kB / 0.9566 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.9255, allocations: 11.05 kB / 0.9566 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.9256, allocations: 179.4 kB / 0.9568 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.9256, allocations: 6.234 kB / 0.9568 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.9256, allocations: 7.125 kB / 0.9568 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.9259, allocations: 69.86 kB / 0.9569 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.9259, allocations: 0 / 0.9569 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.9259, allocations: 1.281 kB / 0.9569 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.9259, allocations: 1.031 kB / 0.9569 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.9261, allocations: 65.56 kB / 0.9569 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000616/0.9267, allocations: 323.7 kB / 0.9572 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.9269, allocations: 65.55 kB / 0.9573 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.927, allocations: 36 kB / 0.9573 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.9271, allocations: 5.016 kB / 0.9573 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.9273, allocations: 86.92 kB / 0.9574 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.9273, allocations: 0 / 0.9574 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004549/0.9278, allocations: 146.6 kB / 0.9576 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.9278, allocations: 60.75 kB / 0.9576 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.928, allocations: 123.8 kB / 0.9577 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.928, allocations: 27.73 kB / 0.9578 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.713e-05/0.9281, allocations: 90.08 kB / 0.9579 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.9281, allocations: 18.83 kB / 0.9579 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.9281, allocations: 1.312 kB / 0.9579 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.181e-05/0.9282, allocations: 323.8 kB / 0.9582 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.9283, allocations: 37.41 kB / 0.9582 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.9284, allocations: 79.3 kB / 0.9583 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.9286, allocations: 38.98 kB / 0.9583 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.9286, allocations: 5.75 kB / 0.9583 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002915/0.9289, allocations: 137.9 kB / 0.9585 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.9289, allocations: 15.67 kB / 0.9585 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.9289, allocations: 5.562 kB / 0.9585 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.9289, allocations: 2.656 kB / 0.9585 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.9291, allocations: 22.17 kB / 0.9585 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.9291, allocations: 7.156 kB / 0.9585 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.119e-05/0.9292, allocations: 15.55 kB / 0.9585 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.9292, allocations: 3.875 kB / 0.9585 GB, free: 4.16 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.9293, allocations: 124.1 kB / 0.9587 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.9294, allocations: 6.875 kB / 0.9587 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.342e-05/0.9294, allocations: 13.58 kB / 0.9587 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.9294, allocations: 5.141 kB / 0.9587 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.9294, allocations: 0 / 0.9587 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.9294, allocations: 0 / 0.9587 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004381/0.9299, allocations: 379.4 kB / 0.959 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.9299, allocations: 3.953 kB / 0.959 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.235e-05/0.9299, allocations: 12.92 kB / 0.9591 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.93, allocations: 0 / 0.9591 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.93, allocations: 4 kB / 0.9591 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.93, allocations: 1.781 kB / 0.9591 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.93, allocations: 0 / 0.9591 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.9303, allocations: 218 kB / 0.9593 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.9303, allocations: 87.72 kB / 0.9594 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.9303, allocations: 3.984 kB / 0.9594 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.828e-05/0.9304, allocations: 14.88 kB / 0.9594 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.9305, allocations: 10.73 kB / 0.9594 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.9305, allocations: 1.375 kB / 0.9594 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.307e-05/0.9306, allocations: 92.89 kB / 0.9595 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9306, allocations: 0 / 0.9595 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000262/0.9308, allocations: 13.75 kB / 0.9595 GB, free: 3.266 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001876/0.931, allocations: 109 kB / 0.9596 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002928/0.9313, allocations: 93.44 kB / 0.9597 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.9313, allocations: 0 / 0.9597 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.9315, allocations: 49.03 kB / 0.9597 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.9318, allocations: 12.31 kB / 0.9597 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.9322, allocations: 165.1 kB / 0.9599 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001599/0.9324, allocations: 0.6994 MB / 0.9606 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.219e-05/0.9324, allocations: 7.906 kB / 0.9606 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.213e-05/0.9325, allocations: 11.56 kB / 0.9606 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of SimCode: time 6.71e-07/0.9325, allocations: 0 / 0.9606 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of Templates: time 0.00372/0.9362, allocations: 0.8412 MB / 0.9614 GB, free: 1.832 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/jenkins/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: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