Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime,fileNamePrefix="Buildings_9_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.007547/0.007547, allocations: 103.9 kB / 15.73 MB, free: 6.039 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.001944/0.001944, allocations: 194 kB / 16.67 MB, free: 5.969 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.521/1.521, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.445/2.445, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001245, allocations: 60.16 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3034, allocations: 140.4 MB / 1.087 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime): time 0.002689/0.3061, allocations: 0.6652 MB / 1.088 GB, free: 1.293 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001933/0.3081, allocations: 1.157 MB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.992e-05/0.3082, allocations: 0 / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.6e-05/0.3083, allocations: 7.922 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.3084, allocations: 15.86 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000706/0.3091, allocations: 148.4 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002614/0.3094, allocations: 147.7 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.3095, allocations: 12 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.3096, allocations: 63.81 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.3098, allocations: 51.88 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.588e-05/0.3098, allocations: 12 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.685e-05/0.3099, allocations: 27.98 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.807e-05/0.31, allocations: 23.91 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.5e-05/0.3101, allocations: 47.84 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.3104, allocations: 134.5 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3104, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.595e-06/0.3104, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.3104, allocations: 4 kB / 1.09 GB, free: 15.45 MB / 0.8575 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.0007863/0.3112, allocations: 417.9 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.3113, allocations: 12.03 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.3113, allocations: 34.73 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.16e-05/0.3114, allocations: 12.84 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.3119, allocations: 204.5 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.3119, allocations: 16.36 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/0.3119, allocations: 12.38 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.3122, allocations: 89.94 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3122, allocations: 0 / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.3122, allocations: 3.938 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3122, allocations: 0 / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.3123, allocations: 39.91 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006602/0.313, allocations: 368.5 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.3132, allocations: 98.62 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.418e-05/0.3133, allocations: 40.78 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.3133, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.3136, allocations: 123.5 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 1.934e-06/0.3136, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0004271/0.3141, allocations: 205.5 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.3141, allocations: 63.34 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.166e-05/0.3142, allocations: 105.8 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.3143, allocations: 37.64 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.686e-05/0.3143, allocations: 92.05 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.768e-05/0.3144, allocations: 31.62 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.288e-05/0.3145, allocations: 49.69 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3146, allocations: 326.8 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3147, allocations: 47.97 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.3148, allocations: 86.3 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/0.315, allocations: 140.9 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.315, allocations: 0 / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003501/0.3154, allocations: 207.1 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/0.3154, allocations: 33.7 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.3154, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.3155, allocations: 4 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.766e-05/0.3156, allocations: 15.92 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.363e-06/0.3156, allocations: 4.125 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.3158, allocations: 35.88 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.3158, allocations: 11.94 kB / 1.093 GB, free: 12.25 MB / 0.8575 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.0001262/0.3159, allocations: 129.8 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.316, allocations: 7.906 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.117e-05/0.316, allocations: 8.5 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.316, allocations: 8 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.316, allocations: 3.984 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.316, allocations: 0 / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.3165, allocations: 438.3 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3166, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.497e-05/0.3166, allocations: 4 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.3166, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.3166, allocations: 7.984 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3166, allocations: 0 / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3166, allocations: 0 / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003113/0.317, allocations: 270.5 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.317, allocations: 85.02 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.3171, allocations: 11.98 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.166e-05/0.3171, allocations: 0 / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.3172, allocations: 23.91 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.3172, allocations: 8 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.001e-05/0.3173, allocations: 91.27 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3173, allocations: 4 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002867/0.3176, allocations: 32 kB / 1.094 GB, free: 11.04 MB / 0.8575 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.0006209/0.3182, allocations: 0.806 MB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003171/0.3185, allocations: 191.4 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3186, allocations: 4 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.3187, allocations: 71.91 kB / 1.095 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.319, allocations: 21.38 kB / 1.095 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.3208, allocations: 1.704 MB / 1.097 GB, free: 8.102 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.3211, allocations: 0.6921 MB / 1.097 GB, free: 7.383 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.409e-05/0.3212, allocations: 16.41 kB / 1.097 GB, free: 7.367 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.075e-05/0.3212, allocations: 30.05 kB / 1.097 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of SimCode: time 1.293e-06/0.3212, allocations: 0 / 1.097 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.3416, allocations: 2.779 MB / 1.1 GB, free: 4.699 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.697/8.038, allocations: 10.06 kB / 1.1 GB, free: 4.691 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime_fmu --startTime=-10 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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