Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008782/0.0008782, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009807/0.0009809, allocations: 172.7 kB / 15.95 MB, free: 208 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.466/1.466, allocations: 223.3 MB / 240 MB, free: 5.289 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.559/2.559, allocations: 390.9 MB / 0.666 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003588, allocations: 8 kB / 0.8154 GB, free: 13.57 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8528/0.8531, allocations: 142.4 MB / 0.9545 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.0009405/0.8541, allocations: 464.4 kB / 0.9549 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.8553, allocations: 1.043 MB / 0.9559 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.328e-05/0.8554, allocations: 3.938 kB / 0.9559 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.156e-05/0.8554, allocations: 3.938 kB / 0.9559 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.335e-05/0.8555, allocations: 13.38 kB / 0.9559 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002928/0.8558, allocations: 45.78 kB / 0.956 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.983e-05/0.8559, allocations: 68.92 kB / 0.9561 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.593e-05/0.856, allocations: 10.31 kB / 0.9561 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.186e-05/0.8561, allocations: 21.39 kB / 0.9561 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.275e-05/0.8562, allocations: 33.73 kB / 0.9561 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.8562, allocations: 2.469 kB / 0.9561 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.467e-05/0.8563, allocations: 24.86 kB / 0.9561 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.809e-05/0.8563, allocations: 10.2 kB / 0.9562 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.282e-05/0.8563, allocations: 38.45 kB / 0.9562 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.65e-05/0.8564, allocations: 52.25 kB / 0.9562 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.8564, allocations: 1.344 kB / 0.9562 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.824e-06/0.8564, allocations: 0 / 0.9562 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.289e-06/0.8564, allocations: 0 / 0.9562 GB, free: 6.242 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.0004452/0.8569, allocations: 372.5 kB / 0.9566 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.8569, allocations: 7.625 kB / 0.9566 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.857, allocations: 16.45 kB / 0.9566 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.311e-05/0.8571, allocations: 166.1 kB / 0.9568 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.8571, allocations: 3.031 kB / 0.9568 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.8571, allocations: 7.5 kB / 0.9568 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.8573, allocations: 73.28 kB / 0.9569 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.8574, allocations: 1.125 kB / 0.9569 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.8574, allocations: 0 / 0.9569 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.8574, allocations: 1.25 kB / 0.9569 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.8576, allocations: 65.39 kB / 0.9569 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005899/0.8582, allocations: 332.1 kB / 0.9572 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.8583, allocations: 56.94 kB / 0.9573 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.631e-05/0.8585, allocations: 44.39 kB / 0.9573 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.8585, allocations: 5.266 kB / 0.9573 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.8587, allocations: 82.11 kB / 0.9574 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.8587, allocations: 0 / 0.9574 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004281/0.8591, allocations: 146.4 kB / 0.9576 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.8592, allocations: 58.03 kB / 0.9576 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.599e-05/0.8593, allocations: 123.9 kB / 0.9577 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.8593, allocations: 34.97 kB / 0.9578 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.403e-05/0.8594, allocations: 90.92 kB / 0.9579 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.8594, allocations: 18.52 kB / 0.9579 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/0.8594, allocations: 0 / 0.9579 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.512e-05/0.8595, allocations: 321.2 kB / 0.9582 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.8596, allocations: 36.69 kB / 0.9582 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.8597, allocations: 78.02 kB / 0.9583 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.8598, allocations: 48.89 kB / 0.9583 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.8598, allocations: 1.062 kB / 0.9583 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002894/0.8601, allocations: 137.9 kB / 0.9585 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.8602, allocations: 9.766 kB / 0.9585 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.8602, allocations: 10.36 kB / 0.9585 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.8602, allocations: 2.219 kB / 0.9585 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.8603, allocations: 26.33 kB / 0.9585 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.8604, allocations: 2.469 kB / 0.9585 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.895e-05/0.8604, allocations: 20.48 kB / 0.9585 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.8605, allocations: 4.5 kB / 0.9585 GB, free: 4.133 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 7.764e-05/0.8605, allocations: 115.1 kB / 0.9587 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.8606, allocations: 6.875 kB / 0.9587 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.8606, allocations: 17.89 kB / 0.9587 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.8606, allocations: 1.438 kB / 0.9587 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.8606, allocations: 3.938 kB / 0.9587 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.8606, allocations: 3.984 kB / 0.9587 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003856/0.861, allocations: 374.9 kB / 0.959 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.861, allocations: 3.953 kB / 0.959 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.413e-05/0.8611, allocations: 19.64 kB / 0.9591 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.8611, allocations: 5.406 kB / 0.9591 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.8611, allocations: 1.438 kB / 0.9591 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8611, allocations: 0 / 0.9591 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.8611, allocations: 0 / 0.9591 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.8614, allocations: 214.2 kB / 0.9593 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.233e-05/0.8614, allocations: 87.94 kB / 0.9594 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.8615, allocations: 0 / 0.9594 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.913e-05/0.8615, allocations: 11.58 kB / 0.9594 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.674e-05/0.8616, allocations: 9.422 kB / 0.9594 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.8616, allocations: 3.375 kB / 0.9594 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.279e-05/0.8617, allocations: 91.02 kB / 0.9595 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8617, allocations: 4 kB / 0.9595 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002509/0.8619, allocations: 13.34 kB / 0.9595 GB, free: 3.242 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.0001619/0.8621, allocations: 114.6 kB / 0.9596 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.8624, allocations: 89 kB / 0.9597 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.8624, allocations: 0 / 0.9597 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.8625, allocations: 32.73 kB / 0.9597 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.8628, allocations: 13.48 kB / 0.9597 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003734/0.8632, allocations: 177.4 kB / 0.9599 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.8634, allocations: 0.6981 MB / 0.9606 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.965e-05/0.8634, allocations: 7.906 kB / 0.9606 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.726e-05/0.8634, allocations: 11.56 kB / 0.9606 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8634, allocations: 4 kB / 0.9606 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of Templates: time 0.003385/0.8668, allocations: 0.8486 MB / 0.9614 GB, free: 1.805 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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