Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001292/0.001292, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.753/2.753, allocations: 437.7 MB / 0.7117 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003753/0.0003756, allocations: 11.94 kB / 0.8722 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8245/0.8249, allocations: 153.8 MB / 1.022 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0009143/0.8259, allocations: 384.9 kB / 1.023 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.8272, allocations: 1.039 MB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.211e-05/0.8273, allocations: 0 / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.521e-05/0.8273, allocations: 0 / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.88e-05/0.8274, allocations: 7.922 kB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002439/0.8276, allocations: 31.91 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.093e-05/0.8277, allocations: 31.92 kB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.8278, allocations: 15.98 kB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.707e-05/0.8279, allocations: 11.94 kB / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.443e-05/0.8279, allocations: 15.92 kB / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.828, allocations: 0 / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.029e-05/0.828, allocations: 19.97 kB / 1.024 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.632e-05/0.8281, allocations: 11.92 kB / 1.024 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.554e-05/0.8281, allocations: 33.7 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.318e-05/0.8282, allocations: 27.94 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.8282, allocations: 0 / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8282, allocations: 3.938 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.8282, allocations: 4 kB / 1.024 GB, free: 14.43 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004873/0.8287, allocations: 357.2 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.8288, allocations: 12.03 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.8288, allocations: 3.906 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.8289, allocations: 171 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.829, allocations: 0 / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.829, allocations: 7.938 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.8292, allocations: 73.61 kB / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.8292, allocations: 3.938 kB / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.8292, allocations: 0 / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.8293, allocations: 0 / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001632/0.8294, allocations: 51.97 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004364/0.8299, allocations: 276.8 kB / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.83, allocations: 58.48 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.879e-05/0.8301, allocations: 28.94 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.8301, allocations: 7.984 kB / 1.025 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.8303, allocations: 75.38 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.372e-06/0.8304, allocations: 0 / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0003834/0.8307, allocations: 117.6 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.8308, allocations: 59.41 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.242e-05/0.8309, allocations: 105.8 kB / 1.025 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.8309, allocations: 25.7 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.831, allocations: 95.98 kB / 1.025 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.831, allocations: 11.89 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-06/0.831, allocations: 0 / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.8311, allocations: 314.8 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.163e-05/0.8312, allocations: 31.97 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.545e-05/0.8313, allocations: 51.42 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.681e-05/0.8314, allocations: 39.92 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.8314, allocations: 0 / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002374/0.8317, allocations: 113.5 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.8317, allocations: 4 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.8317, allocations: 4 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.8317, allocations: 0 / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.8319, allocations: 19.92 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.8319, allocations: 4 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.036e-05/0.8319, allocations: 7.984 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.832, allocations: 8.031 kB / 1.026 GB, free: 12.1 MB / 0.7794 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.658e-05/0.8321, allocations: 125.7 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.167e-06/0.8321, allocations: 0 / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.8324, allocations: 105.8 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.8324, allocations: 4 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8324, allocations: 4.062 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.8324, allocations: 0 / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003941/0.8328, allocations: 362.4 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.8328, allocations: 0 / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.354e-05/0.8329, allocations: 15.94 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.8329, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.8329, allocations: 4 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.8329, allocations: 3.984 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.8329, allocations: 0 / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002578/0.8332, allocations: 195.4 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.684e-05/0.8332, allocations: 81.02 kB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.8332, allocations: 0 / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.026e-05/0.8333, allocations: 11.98 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/0.8334, allocations: 0 / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.8334, allocations: 8 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.932e-05/0.8334, allocations: 87.27 kB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8334, allocations: 0 / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002431/0.8337, allocations: 16 kB / 1.027 GB, free: 10.98 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001466/0.8338, allocations: 99.23 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002263/0.8341, allocations: 71.89 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.8341, allocations: 0 / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.091e-05/0.8342, allocations: 27.98 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.8345, allocations: 14.2 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003056/0.8348, allocations: 147.1 kB / 1.027 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.835, allocations: 0.6809 MB / 1.028 GB, free: 9.895 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.011e-05/0.835, allocations: 8 kB / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.113e-05/0.8351, allocations: 7.438 kB / 1.028 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.8351, allocations: 7.938 kB / 1.028 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of Templates: time 0.002951/0.838, allocations: 0.6518 MB / 1.029 GB, free: 9.23 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches