Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007563/0.0007564, allocations: 96.94 kB / 15.36 MB, free: 0.7344 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.004779/0.004779, allocations: 170 kB / 16.27 MB, free: 6.652 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.325/1.325, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.623/2.623, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003262, allocations: 12 kB / 0.873 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6595/0.6598, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime): time 0.0008148/0.6607, allocations: 409 kB / 1.024 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001478/0.6622, allocations: 1.159 MB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.271e-05/0.6622, allocations: 4 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.472e-05/0.6622, allocations: 0 / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.063e-05/0.6623, allocations: 3.938 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004861/0.6628, allocations: 127.8 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.663, allocations: 131.7 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.216e-05/0.6631, allocations: 4 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.319e-05/0.6632, allocations: 55.89 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.383e-05/0.6633, allocations: 39.88 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.658e-05/0.6633, allocations: 11.98 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.2e-05/0.6634, allocations: 27.92 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.674e-05/0.6634, allocations: 15.92 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.6635, allocations: 73.53 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.6637, allocations: 121.9 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.6637, allocations: 4 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6637, allocations: 3.938 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.6638, allocations: 0 / 1.025 GB, free: 13.65 MB / 0.7794 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.0005244/0.6643, allocations: 405 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.6643, allocations: 8.031 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.6644, allocations: 30.75 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/0.6644, allocations: 8.938 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.6648, allocations: 220.3 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.6649, allocations: 12.38 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.434e-05/0.6649, allocations: 16.3 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.6651, allocations: 85.95 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.6651, allocations: 0 / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.6651, allocations: 3.984 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.6651, allocations: 4 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.038e-05/0.6652, allocations: 35.97 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000593/0.6658, allocations: 372.6 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/0.666, allocations: 94.53 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.181e-05/0.6661, allocations: 36.84 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.6661, allocations: 4 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.6663, allocations: 130.8 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.6663, allocations: 3.938 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0003825/0.6667, allocations: 201.5 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.6668, allocations: 59.41 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.189e-05/0.6669, allocations: 105.8 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.6669, allocations: 37.69 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.945e-05/0.667, allocations: 92.14 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.439e-05/0.667, allocations: 35.69 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.628e-05/0.6671, allocations: 25.72 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.6672, allocations: 326.8 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.6673, allocations: 43.97 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.6675, allocations: 89.92 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.6677, allocations: 137.9 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.6677, allocations: 0 / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003306/0.668, allocations: 204.4 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/0.6681, allocations: 45.81 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.6681, allocations: 0 / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.6681, allocations: 4 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.48e-05/0.6682, allocations: 11.94 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.6682, allocations: 0 / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.6684, allocations: 55.86 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.6684, allocations: 4 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 16 (thrTim.passed,$PRE.thrTim.passed,noThr.passed,$PRE.noThr.passed,$whenCondition5,$whenCondition6,booPul.y,$PRE.booPul.y,thrTim.entryTime,$PRE.thrTim.entryTime,noThr.entryTime,$PRE.noThr.entryTime,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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 0.000112/0.6685, allocations: 142.2 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.6686, allocations: 4 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.267e-05/0.6686, allocations: 8.5 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.6686, allocations: 4 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.6686, allocations: 0 / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6686, allocations: 0 / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004259/0.6691, allocations: 446.3 kB / 1.029 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.6691, allocations: 3.938 kB / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.6691, allocations: 7.984 kB / 1.029 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.6691, allocations: 0 / 1.029 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.6691, allocations: 8 kB / 1.029 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.6691, allocations: 0 / 1.029 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6691, allocations: 0 / 1.029 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.6694, allocations: 267.3 kB / 1.029 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.302e-05/0.6695, allocations: 85.02 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.6695, allocations: 3.938 kB / 1.029 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/0.6696, allocations: 11.98 kB / 1.029 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.6696, allocations: 19.91 kB / 1.029 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.6697, allocations: 8 kB / 1.029 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.531e-05/0.6697, allocations: 87.27 kB / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2e-07/0.6697, allocations: 0 / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002684/0.67, allocations: 32 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition3,noThr.passed,noThr.entryTime,thrTim.passed,thrTim.entryTime,booPul.y) * Number of discrete states: 2 (noThr.entryTime,thrTim.entryTime) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006088/0.6706, allocations: 0.8066 MB / 1.03 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003042/0.6709, allocations: 191.3 kB / 1.03 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6709, allocations: 0 / 1.03 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.6711, allocations: 68.22 kB / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.6713, allocations: 26.73 kB / 1.03 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001736/0.6731, allocations: 1.722 MB / 1.032 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.6733, allocations: 0.6926 MB / 1.033 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.158e-05/0.6734, allocations: 8.562 kB / 1.033 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.329e-05/0.6734, allocations: 23.42 kB / 1.033 GB, free: 5.559 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.6734, allocations: 4 kB / 1.033 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01169/0.6851, allocations: 2.447 MB / 1.035 GB, free: 3.293 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/0.6854, allocations: 224.1 kB / 1.035 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.47, allocations: 1.562 kB / 1.035 GB, free: 3.031 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime_fmu --startTime=-10 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,noThr.u,noThr.y,noThr.t,noThr.passed,thrTim.u,thrTim.y,thrTim.t,thrTim.passed Variables in the result:booPul.period,booPul.shift,booPul.width,booPul.y,noThr.passed,noThr.t,noThr.u,noThr.y,thrTim.passed,thrTim.t,thrTim.u,thrTim.y,time