Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 219.5 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 256 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.413/3.413, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 61.81 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4217, allocations: 180.2 MB / 1.353 GB, free: 8.496 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001993/0.4237, allocations: 0.6775 MB / 1.354 GB, free: 7.82 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.4252, allocations: 1.116 MB / 1.355 GB, free: 6.691 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.843e-05/0.4252, allocations: 0 / 1.355 GB, free: 6.691 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.132e-05/0.4253, allocations: 3.938 kB / 1.355 GB, free: 6.688 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.577e-05/0.4253, allocations: 3.938 kB / 1.355 GB, free: 6.684 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.4256, allocations: 47.83 kB / 1.355 GB, free: 6.637 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.4257, allocations: 43.92 kB / 1.355 GB, free: 6.594 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.4258, allocations: 11.97 kB / 1.355 GB, free: 6.582 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.416e-05/0.4259, allocations: 23.92 kB / 1.355 GB, free: 6.559 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.016e-05/0.426, allocations: 15.92 kB / 1.355 GB, free: 6.543 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.426, allocations: 8 kB / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.992e-05/0.4261, allocations: 19.98 kB / 1.355 GB, free: 6.516 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.238e-05/0.4261, allocations: 15.94 kB / 1.355 GB, free: 6.5 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.609e-05/0.4261, allocations: 19.91 kB / 1.355 GB, free: 6.48 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.4263, allocations: 67.94 kB / 1.355 GB, free: 6.414 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4263, allocations: 0 / 1.355 GB, free: 6.414 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.042e-06/0.4263, allocations: 0 / 1.355 GB, free: 6.414 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.4263, allocations: 0 / 1.355 GB, free: 6.414 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005504/0.4268, allocations: 290.2 kB / 1.355 GB, free: 6.098 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.4269, allocations: 12.03 kB / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.601e-05/0.4269, allocations: 34.75 kB / 1.355 GB, free: 6.043 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.341e-05/0.427, allocations: 8.938 kB / 1.355 GB, free: 6.035 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.4271, allocations: 118.4 kB / 1.355 GB, free: 5.895 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.4272, allocations: 4.375 kB / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.091e-05/0.4272, allocations: 384 / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.4274, allocations: 62.23 kB / 1.355 GB, free: 5.824 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.4274, allocations: 7.875 kB / 1.355 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.4274, allocations: 7.969 kB / 1.355 GB, free: 5.809 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4274, allocations: 4 kB / 1.355 GB, free: 5.805 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.4276, allocations: 39.97 kB / 1.355 GB, free: 5.766 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.428, allocations: 251.9 kB / 1.356 GB, free: 5.477 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.4282, allocations: 46.56 kB / 1.356 GB, free: 5.422 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/0.4283, allocations: 32.95 kB / 1.356 GB, free: 5.387 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.4283, allocations: 7.938 kB / 1.356 GB, free: 5.379 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000199/0.4285, allocations: 75.41 kB / 1.356 GB, free: 5.293 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.4285, allocations: 0 / 1.356 GB, free: 5.293 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004209/0.4289, allocations: 113.6 kB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.429, allocations: 63.38 kB / 1.356 GB, free: 5.102 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.264e-05/0.4291, allocations: 105.9 kB / 1.356 GB, free: 4.988 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.4291, allocations: 37.56 kB / 1.356 GB, free: 4.945 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.4292, allocations: 88.09 kB / 1.356 GB, free: 4.855 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.4292, allocations: 19.84 kB / 1.356 GB, free: 4.836 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.495e-05/0.4292, allocations: 25.7 kB / 1.356 GB, free: 4.805 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4294, allocations: 318.8 kB / 1.357 GB, free: 4.484 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.4295, allocations: 35.91 kB / 1.357 GB, free: 4.449 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.4296, allocations: 52.27 kB / 1.357 GB, free: 4.383 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.4298, allocations: 88.2 kB / 1.357 GB, free: 4.281 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4298, allocations: 0 / 1.357 GB, free: 4.281 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002709/0.4301, allocations: 109.6 kB / 1.357 GB, free: 4.168 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.4301, allocations: 8.031 kB / 1.357 GB, free: 4.16 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4301, allocations: 4 kB / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.4301, allocations: 0 / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.4302, allocations: 19.98 kB / 1.357 GB, free: 4.137 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.4302, allocations: 0 / 1.357 GB, free: 4.137 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.322e-05/0.4303, allocations: 15.94 kB / 1.357 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.4303, allocations: 0 / 1.357 GB, free: 4.121 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 9.585e-05/0.4304, allocations: 128.2 kB / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.088e-05/0.4304, allocations: 8 kB / 1.357 GB, free: 3.98 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.4307, allocations: 102 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4307, allocations: 320 / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.4307, allocations: 0 / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4307, allocations: 0 / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004792/0.4312, allocations: 333.4 kB / 1.357 GB, free: 3.5 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4312, allocations: 4 kB / 1.357 GB, free: 3.496 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.952e-05/0.4313, allocations: 11.98 kB / 1.357 GB, free: 3.484 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.4313, allocations: 0 / 1.357 GB, free: 3.484 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.4313, allocations: 0 / 1.357 GB, free: 3.484 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4313, allocations: 4 kB / 1.357 GB, free: 3.48 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4313, allocations: 0 / 1.357 GB, free: 3.48 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000296/0.4316, allocations: 199.4 kB / 1.358 GB, free: 3.27 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.4316, allocations: 3.953 kB / 1.358 GB, free: 3.266 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.4316, allocations: 4 kB / 1.358 GB, free: 3.262 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.124e-05/0.4317, allocations: 7.984 kB / 1.358 GB, free: 3.254 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.4317, allocations: 7.938 kB / 1.358 GB, free: 3.246 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.4317, allocations: 0 / 1.358 GB, free: 3.246 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.338e-05/0.4318, allocations: 87.77 kB / 1.358 GB, free: 3.16 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4318, allocations: 0 / 1.358 GB, free: 3.16 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002492/0.432, allocations: 15.94 kB / 1.358 GB, free: 3.145 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000631/0.4327, allocations: 0.7241 MB / 1.358 GB, free: 2.395 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002579/0.4329, allocations: 72 kB / 1.359 GB, free: 2.324 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4329, allocations: 4.125 kB / 1.359 GB, free: 2.32 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.433, allocations: 27.98 kB / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.4333, allocations: 11.92 kB / 1.359 GB, free: 2.281 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001875/0.4352, allocations: 1.414 MB / 1.36 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.4355, allocations: 0.6864 MB / 1.361 GB, free: 52 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.221e-05/0.4355, allocations: 7.984 kB / 1.361 GB, free: 44 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.641e-05/0.4356, allocations: 19.42 kB / 1.361 GB, free: 24 kB / 1.045 GB Notification: Performance of SimCode: time 2.8e-07/0.4356, allocations: 0 / 1.361 GB, free: 24 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03075/0.4663, allocations: 1.906 MB / 1.363 GB, free: 14.25 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.74, allocations: 16.92 kB / 1.363 GB, free: 14.24 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.76433655503206]