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.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007977/0.007977, allocations: 101.5 kB / 15.73 MB, free: 6.004 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.001636/0.001636, allocations: 194.9 kB / 16.67 MB, free: 5.934 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.576/2.576, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 67.89 kB / 1.054 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9517/0.9532, allocations: 157.4 MB / 1.207 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002115/0.9554, allocations: 0.6633 MB / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.9568, allocations: 1.053 MB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.063e-05/0.9569, allocations: 0 / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.118e-05/0.957, allocations: 3.938 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.828e-05/0.9571, allocations: 3.938 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.9574, allocations: 47.83 kB / 1.209 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.9575, allocations: 39.86 kB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.9576, allocations: 11.98 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.395e-05/0.9577, allocations: 23.86 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.191e-05/0.9578, allocations: 19.92 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.9578, allocations: 4 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.507e-05/0.9579, allocations: 27.91 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.9579, allocations: 4 kB / 1.209 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/0.958, allocations: 19.86 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.9581, allocations: 51.86 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.9581, allocations: 4 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.643e-06/0.9581, allocations: 0 / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.9581, allocations: 0 / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005316/0.9587, allocations: 357.6 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.9587, allocations: 8.031 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.881e-05/0.9588, allocations: 34.75 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.9588, allocations: 8.844 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.9589, allocations: 164.4 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.959, allocations: 4.375 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.959, allocations: 384 / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.9592, allocations: 62.17 kB / 1.21 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.9592, allocations: 7.922 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.9592, allocations: 8 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.9592, allocations: 0 / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.9594, allocations: 39.95 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004732/0.9599, allocations: 280.8 kB / 1.21 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.96, allocations: 42.5 kB / 1.21 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.9601, allocations: 36.92 kB / 1.21 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.9602, allocations: 0 / 1.21 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002211/0.9604, allocations: 67.39 kB / 1.21 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 4.188e-06/0.9604, allocations: 0 / 1.21 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.0003845/0.9608, allocations: 113.5 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.9609, allocations: 55.41 kB / 1.21 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.517e-05/0.961, allocations: 105.8 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.961, allocations: 29.7 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/0.9611, allocations: 87.98 kB / 1.211 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.9611, allocations: 15.89 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.193e-05/0.9611, allocations: 21.7 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.9613, allocations: 318.8 kB / 1.211 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.858e-05/0.9614, allocations: 27.97 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.9615, allocations: 47.42 kB / 1.211 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.9617, allocations: 75.33 kB / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.9617, allocations: 0 / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002784/0.962, allocations: 101.5 kB / 1.211 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.962, allocations: 4 kB / 1.211 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.962, allocations: 8.062 kB / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.962, allocations: 4 kB / 1.211 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.9622, allocations: 15.92 kB / 1.211 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.9622, allocations: 4.469 kB / 1.211 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.483e-05/0.9623, allocations: 8 kB / 1.211 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.9623, allocations: 4 kB / 1.211 GB, free: 9.266 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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.394e-05/0.9624, allocations: 121.8 kB / 1.211 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.9624, allocations: 0 / 1.211 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.9627, allocations: 97.47 kB / 1.211 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.9627, allocations: 3.984 kB / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.9627, allocations: 0 / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.9627, allocations: 0 / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/0.9632, allocations: 338.5 kB / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.9632, allocations: 384 / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.382e-05/0.9632, allocations: 15.92 kB / 1.212 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.9633, allocations: 4 kB / 1.212 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.9633, allocations: 4 kB / 1.212 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.9633, allocations: 0 / 1.212 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.9633, allocations: 0 / 1.212 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002781/0.9636, allocations: 179.5 kB / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.9636, allocations: 85 kB / 1.212 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.9637, allocations: 4 kB / 1.212 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.262e-05/0.9637, allocations: 11.94 kB / 1.212 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.695e-05/0.9638, allocations: 11.92 kB / 1.212 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.9638, allocations: 0 / 1.212 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.11e-05/0.9638, allocations: 91.27 kB / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9639, allocations: 0 / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002461/0.9641, allocations: 8 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006404/0.9648, allocations: 0.7163 MB / 1.213 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002577/0.965, allocations: 59.89 kB / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.965, allocations: 0 / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.9651, allocations: 32.22 kB / 1.213 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.9654, allocations: 7.938 kB / 1.213 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.967, allocations: 1.396 MB / 1.214 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.9673, allocations: 0.6807 MB / 1.215 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.07e-05/0.9674, allocations: 4 kB / 1.215 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.401e-05/0.9674, allocations: 19.42 kB / 1.215 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.9674, allocations: 0 / 1.215 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.9853, allocations: 1.729 MB / 1.217 GB, free: 3.516 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.592/8.577, allocations: 16.2 kB / 1.217 GB, free: 3.504 MB / 0.9356 GB (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 --timeout=50 --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) 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) Reference file matches