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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001482, allocations: 108.4 kB / 16.27 MB, free: 5.984 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.001471/0.001471, allocations: 187.8 kB / 17.2 MB, free: 5.609 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.35/1.35, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.615/2.615, allocations: 482.4 MB / 0.7553 GB, free: 7.008 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 69.53 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.675/0.6769, allocations: 162.2 MB / 1.083 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001712/0.6786, allocations: 0.6625 MB / 1.084 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.6797, allocations: 1.058 MB / 1.085 GB, free: 464 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.572e-05/0.6797, allocations: 0.7188 kB / 1.085 GB, free: 464 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.403e-05/0.6798, allocations: 5.328 kB / 1.085 GB, free: 460 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.866e-05/0.6798, allocations: 8.672 kB / 1.085 GB, free: 452 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.6801, allocations: 38.67 kB / 1.085 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.988e-05/0.6802, allocations: 47.11 kB / 1.085 GB, free: 408 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.075e-05/0.6802, allocations: 10.97 kB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.69e-05/0.6803, allocations: 18.16 kB / 1.085 GB, free: 396 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.775e-05/0.6804, allocations: 27.44 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.6804, allocations: 3.938 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.286e-05/0.6805, allocations: 17.44 kB / 1.085 GB, free: 376 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.6805, allocations: 21.12 kB / 1.085 GB, free: 360 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/0.6805, allocations: 14.92 kB / 1.085 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.6806, allocations: 57.89 kB / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.6806, allocations: 0 / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6807, allocations: 0 / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.6807, allocations: 3.938 kB / 1.085 GB, free: 324 kB / 0.8262 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.0004568/0.6811, allocations: 366.1 kB / 1.085 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.6812, allocations: 9.438 kB / 1.085 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.548e-05/0.6812, allocations: 11.84 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.6813, allocations: 164 kB / 1.085 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.6814, allocations: 2.922 kB / 1.085 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.6814, allocations: 11.75 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.6816, allocations: 57.48 kB / 1.085 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.6816, allocations: 1.438 kB / 1.085 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.6816, allocations: 7.938 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.6816, allocations: 4.719 kB / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.6818, allocations: 38.52 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.6823, allocations: 284.1 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001613/0.6825, allocations: 63.78 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.75e-05/0.6826, allocations: 28.41 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.6826, allocations: 0.75 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.6828, allocations: 72.39 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.6828, allocations: 3.938 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0003911/0.6832, allocations: 116 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.6833, allocations: 58.52 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.747e-05/0.6834, allocations: 110.3 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.6834, allocations: 30.86 kB / 1.086 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.6834, allocations: 86.11 kB / 1.086 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.6835, allocations: 15.39 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.801e-05/0.6835, allocations: 23.62 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.6837, allocations: 322 kB / 1.087 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.6838, allocations: 23.69 kB / 1.087 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.6839, allocations: 61.66 kB / 1.087 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.6842, allocations: 91.22 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.6842, allocations: 0 / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002793/0.6845, allocations: 114.9 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.6845, allocations: 6.422 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.6845, allocations: 1.094 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.6845, allocations: 2.938 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.6846, allocations: 15.69 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.6846, allocations: 8.938 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.202e-05/0.6847, allocations: 12.5 kB / 1.087 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.6847, allocations: 3.156 kB / 1.087 GB, free: 14.4 MB / 0.8419 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 0.0001068/0.6848, allocations: 132.1 kB / 1.087 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.545e-05/0.6849, allocations: 9.469 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002782/0.6851, allocations: 96.75 kB / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.6852, allocations: 1.156 kB / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6852, allocations: 0 / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.6852, allocations: 1.406 kB / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.6856, allocations: 362.2 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.6857, allocations: 1.469 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.6857, allocations: 8.453 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.6857, allocations: 0.8438 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.6857, allocations: 5.641 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6858, allocations: 0 / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6858, allocations: 1 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002876/0.6861, allocations: 193.1 kB / 1.088 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-05/0.6861, allocations: 82.14 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.6861, allocations: 6.344 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.968e-05/0.6862, allocations: 10.12 kB / 1.088 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.6863, allocations: 4 kB / 1.088 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.6863, allocations: 7.078 kB / 1.088 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.342e-05/0.6863, allocations: 90.77 kB / 1.088 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6863, allocations: 4 kB / 1.088 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002342/0.6866, allocations: 10.91 kB / 1.088 GB, free: 13.52 MB / 0.8419 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.0001332/0.6867, allocations: 104 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000264/0.687, allocations: 68.44 kB / 1.088 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.687, allocations: 0 / 1.088 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.6871, allocations: 33.94 kB / 1.088 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.6874, allocations: 9.547 kB / 1.088 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003422/0.6877, allocations: 179.9 kB / 1.088 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.6881, allocations: 0.6828 MB / 1.089 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.729e-05/0.6881, allocations: 15.09 kB / 1.089 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of SimCode: time 2.61e-07/0.6881, allocations: 0 / 1.089 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of Templates: time 0.002623/0.6907, allocations: 0.8748 MB / 1.09 GB, free: 12.47 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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