Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime,fileNamePrefix="Buildings_latest_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.001079/0.001079, allocations: 97.33 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.008311/0.008311, allocations: 170.5 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.301/1.301, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.616/2.616, allocations: 443.4 MB / 0.7176 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003721, allocations: 12.59 kB / 0.8797 GB, free: 41.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3314, allocations: 155.2 MB / 1.031 GB, free: 4.105 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime): time 0.0008858/0.3324, allocations: 398.3 kB / 1.032 GB, free: 3.719 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.3338, allocations: 1.16 MB / 1.033 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.175e-05/0.3338, allocations: 4 kB / 1.033 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.671e-05/0.3339, allocations: 3.938 kB / 1.033 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.3339, allocations: 11.91 kB / 1.033 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.3344, allocations: 123 kB / 1.033 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.3346, allocations: 135.7 kB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.795e-05/0.3347, allocations: 12 kB / 1.033 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.694e-05/0.3348, allocations: 51.88 kB / 1.033 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.3349, allocations: 39.89 kB / 1.033 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.3349, allocations: 8 kB / 1.033 GB, free: 2.164 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.741e-05/0.335, allocations: 23.98 kB / 1.033 GB, free: 2.141 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.267e-05/0.3351, allocations: 19.91 kB / 1.033 GB, free: 2.121 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.327e-05/0.3352, allocations: 77.58 kB / 1.033 GB, free: 2.039 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.3353, allocations: 123.8 kB / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3354, allocations: 0 / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3354, allocations: 0 / 1.033 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.3354, allocations: 4 kB / 1.033 GB, free: 1.914 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.0005494/0.3359, allocations: 397 kB / 1.034 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.336, allocations: 12.03 kB / 1.034 GB, free: 1.457 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.964e-05/0.336, allocations: 42.67 kB / 1.034 GB, free: 1.406 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.406e-05/0.3361, allocations: 12.88 kB / 1.034 GB, free: 1.395 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.3365, allocations: 212.4 kB / 1.034 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.3365, allocations: 12.36 kB / 1.034 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.057e-05/0.3366, allocations: 12.38 kB / 1.034 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001664/0.3367, allocations: 85.94 kB / 1.034 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.3367, allocations: 0 / 1.034 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.3368, allocations: 3.938 kB / 1.034 GB, free: 1.031 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.3368, allocations: 0 / 1.034 GB, free: 1.031 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.64e-05/0.3369, allocations: 43.97 kB / 1.034 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005737/0.3375, allocations: 360.6 kB / 1.035 GB, free: 0.5859 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.3376, allocations: 94.56 kB / 1.035 GB, free: 496 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.054e-05/0.3377, allocations: 40.84 kB / 1.035 GB, free: 452 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.3377, allocations: 4 kB / 1.035 GB, free: 448 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.3379, allocations: 134.4 kB / 1.035 GB, free: 304 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.338, allocations: 0 / 1.035 GB, free: 304 kB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0003672/0.3383, allocations: 205.5 kB / 1.035 GB, free: 92 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.3384, allocations: 63.33 kB / 1.035 GB, free: 16 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.446e-05/0.3385, allocations: 113.8 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.3385, allocations: 29.7 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.3386, allocations: 88.14 kB / 1.035 GB, free: 15.77 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.3386, allocations: 35.55 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.3387, allocations: 25.7 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3388, allocations: 322.8 kB / 1.036 GB, free: 15.38 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.3389, allocations: 47.97 kB / 1.036 GB, free: 15.33 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.339, allocations: 93.81 kB / 1.036 GB, free: 15.23 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.3392, allocations: 133.9 kB / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3392, allocations: 0 / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000322/0.3395, allocations: 218.4 kB / 1.036 GB, free: 14.85 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.3396, allocations: 33.7 kB / 1.036 GB, free: 14.81 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3396, allocations: 0 / 1.036 GB, free: 14.81 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3396, allocations: 0 / 1.036 GB, free: 14.81 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.012e-05/0.3397, allocations: 15.92 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.3397, allocations: 4 kB / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.3399, allocations: 47.97 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.3399, allocations: 8 kB / 1.036 GB, free: 14.74 MB / 0.795 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.0001132/0.3401, allocations: 139.2 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.537e-05/0.3401, allocations: 8 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.3401, allocations: 8.5 kB / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3401, allocations: 0 / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.3401, allocations: 7.922 kB / 1.036 GB, free: 14.57 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3401, allocations: 8 kB / 1.036 GB, free: 14.56 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004/0.3406, allocations: 438.3 kB / 1.037 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3406, allocations: 0 / 1.037 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.924e-05/0.3406, allocations: 4 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3406, allocations: 3.938 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.3406, allocations: 3.984 kB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3406, allocations: 4 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3406, allocations: 3.938 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.3409, allocations: 263.3 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.3409, allocations: 81.09 kB / 1.037 GB, free: 13.69 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.341, allocations: 11.98 kB / 1.037 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.49e-05/0.3411, allocations: 4 kB / 1.037 GB, free: 13.67 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.3411, allocations: 23.91 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.3411, allocations: 4 kB / 1.037 GB, free: 13.64 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.407e-05/0.3412, allocations: 95.56 kB / 1.037 GB, free: 13.55 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3412, allocations: 4 kB / 1.037 GB, free: 13.55 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002588/0.3415, allocations: 32 kB / 1.037 GB, free: 13.52 MB / 0.795 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.0005781/0.3421, allocations: 0.8043 MB / 1.038 GB, free: 12.69 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002909/0.3424, allocations: 183.5 kB / 1.038 GB, free: 12.5 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3424, allocations: 4.062 kB / 1.038 GB, free: 12.49 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.3425, allocations: 75.89 kB / 1.038 GB, free: 12.42 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.3428, allocations: 19.92 kB / 1.038 GB, free: 12.4 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.3445, allocations: 1.715 MB / 1.04 GB, free: 10.57 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.3448, allocations: 0.6926 MB / 1.041 GB, free: 9.855 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.419e-05/0.3448, allocations: 16.55 kB / 1.041 GB, free: 9.84 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.714e-05/0.3449, allocations: 19.44 kB / 1.041 GB, free: 9.82 MB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.3449, allocations: 0 / 1.041 GB, free: 9.82 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01248/0.3574, allocations: 2.447 MB / 1.043 GB, free: 7.562 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.3576, allocations: 234.4 kB / 1.043 GB, free: 7.301 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.913/2.27, allocations: 2.188 kB / 1.043 GB, free: 7.301 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime_fmu --startTime=-10 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_TimerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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