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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001241/0.001241, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00158/0.00158, allocations: 194.5 kB / 16.14 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.459/1.459, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.714/2.714, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.89 kB / 0.8686 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8673/0.8693, allocations: 151.6 MB / 1.017 GB, free: 2.809 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002466/0.8718, allocations: 0.7263 MB / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001745/0.8736, allocations: 1.05 MB / 1.018 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.42e-05/0.8737, allocations: 4 kB / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.853e-05/0.8738, allocations: 3.938 kB / 1.018 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.565e-05/0.8739, allocations: 7.875 kB / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.8742, allocations: 27.97 kB / 1.018 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.044e-05/0.8743, allocations: 43.84 kB / 1.018 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.8744, allocations: 8 kB / 1.018 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.392e-05/0.8745, allocations: 19.92 kB / 1.018 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.22e-05/0.8746, allocations: 23.92 kB / 1.018 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.8746, allocations: 0 / 1.018 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.257e-05/0.8747, allocations: 15.97 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.222e-05/0.8747, allocations: 8 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.205e-05/0.8748, allocations: 19.86 kB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.8749, allocations: 47.86 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.8749, allocations: 11.92 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.032e-06/0.8749, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.8749, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 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.000611/0.8756, allocations: 358.5 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.8756, allocations: 8.031 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.8757, allocations: 4.938 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.8758, allocations: 168.3 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.8758, allocations: 12.31 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.8759, allocations: 384 / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.8761, allocations: 54.23 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.8761, allocations: 4.188 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.298e-05/0.8761, allocations: 11.94 kB / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.8762, allocations: 4 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.8763, allocations: 35.95 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005554/0.8769, allocations: 269 kB / 1.019 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.8771, allocations: 54.42 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.437e-05/0.8772, allocations: 28.92 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.8772, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002784/0.8775, allocations: 67.39 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.532e-06/0.8775, allocations: 0 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0004071/0.8779, allocations: 113.5 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.878, allocations: 59.34 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.8781, allocations: 113.8 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.8781, allocations: 25.7 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.484e-05/0.8782, allocations: 84.08 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.8782, allocations: 19.8 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.452e-05/0.8783, allocations: 21.7 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.8784, allocations: 322.8 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.432e-05/0.8785, allocations: 23.97 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.8786, allocations: 43.42 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.8788, allocations: 83.27 kB / 1.02 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.8788, allocations: 0 / 1.02 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002606/0.8791, allocations: 93.59 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.8791, allocations: 10.59 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.8791, allocations: 8.125 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.8792, allocations: 3.984 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.8793, allocations: 8 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.8793, allocations: 7.984 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.99e-05/0.8794, allocations: 7.906 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.8794, allocations: 4 kB / 1.021 GB, free: 14.45 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 (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 0.0001149/0.8795, allocations: 121.7 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.8795, allocations: 3.984 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002663/0.8798, allocations: 93.56 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.8798, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.8798, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.8798, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004258/0.8803, allocations: 346.8 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.8803, allocations: 4 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-05/0.8803, allocations: 15.98 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.8804, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.8804, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.8804, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.8804, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.8807, allocations: 191.3 kB / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.8807, allocations: 81.11 kB / 1.021 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.8807, allocations: 0 / 1.021 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.8808, allocations: 7.984 kB / 1.021 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/0.8809, allocations: 11.92 kB / 1.021 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.8809, allocations: 3.938 kB / 1.021 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.252e-05/0.881, allocations: 87.28 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.003e-06/0.881, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002564/0.8813, allocations: 11.94 kB / 1.022 GB, free: 13.38 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 (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.0001739/0.8814, allocations: 119.2 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002454/0.8817, allocations: 51.95 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.8817, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.8818, allocations: 27.92 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.8821, allocations: 7.984 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003615/0.8825, allocations: 144 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.8827, allocations: 0.6809 MB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.8828, allocations: 7.984 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.8828, allocations: 11.44 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.8828, allocations: 0 / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of Templates: time 0.003318/0.8861, allocations: 0.6781 MB / 1.023 GB, free: 11.6 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