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.0009901/0.0009901, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.449/1.449, allocations: 223.3 MB / 241 MB, free: 5.363 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.765/2.765, allocations: 437.8 MB / 0.7128 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003552/0.0003552, allocations: 8 kB / 0.8735 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7962/0.7966, allocations: 153.8 MB / 1.024 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001435/0.7981, allocations: 404.9 kB / 1.024 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002189/0.8003, allocations: 1.035 MB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.385e-05/0.8004, allocations: 4 kB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.685e-05/0.8005, allocations: 7.875 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.8006, allocations: 3.984 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.8011, allocations: 27.92 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001395/0.8012, allocations: 43.89 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.8014, allocations: 8 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.8015, allocations: 23.86 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.071e-05/0.8016, allocations: 19.86 kB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.8016, allocations: 4 kB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.8017, allocations: 15.98 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.978e-05/0.8018, allocations: 3.984 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.945e-05/0.8018, allocations: 45.56 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.802, allocations: 35.94 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.802, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.935e-06/0.802, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.002e-06/0.802, allocations: 4 kB / 1.025 GB, free: 14.24 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.0006204/0.8026, allocations: 349.4 kB / 1.026 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.8027, allocations: 8.031 kB / 1.026 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.671e-05/0.8028, allocations: 12.83 kB / 1.026 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.803, allocations: 164.4 kB / 1.026 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.803, allocations: 384 / 1.026 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.803, allocations: 8.375 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.8032, allocations: 66.17 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.8033, allocations: 192 / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.8033, allocations: 7.938 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.8033, allocations: 0 / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.8035, allocations: 51.95 kB / 1.026 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000519/0.804, allocations: 280.8 kB / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/0.8042, allocations: 50.5 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.8043, allocations: 36.86 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.8043, allocations: 4 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002388/0.8046, allocations: 75.39 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 2.084e-06/0.8046, allocations: 0 / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0004254/0.805, allocations: 117.8 kB / 1.027 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.8051, allocations: 55.41 kB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.885e-05/0.8052, allocations: 113.7 kB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.8052, allocations: 33.64 kB / 1.027 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.267e-05/0.8053, allocations: 88.08 kB / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.8053, allocations: 7.906 kB / 1.027 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.8053, allocations: 17.7 kB / 1.027 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.8055, allocations: 314.8 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.8056, allocations: 35.97 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.8057, allocations: 47.42 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.8059, allocations: 91.27 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.8059, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002818/0.8062, allocations: 113.6 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.8063, allocations: 4 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.8063, allocations: 4 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.8063, allocations: 11.92 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.8064, allocations: 20.06 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.8064, allocations: 4.453 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.061e-05/0.8065, allocations: 8 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.8065, allocations: 4 kB / 1.027 GB, free: 11.83 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 9.118e-05/0.8066, allocations: 117.8 kB / 1.028 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.445e-05/0.8067, allocations: 7.891 kB / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003146/0.807, allocations: 101.6 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.807, allocations: 7.938 kB / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.807, allocations: 0 / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.807, allocations: 3.984 kB / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004317/0.8074, allocations: 354.4 kB / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.8075, allocations: 0 / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.088e-05/0.8075, allocations: 11.98 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.8075, allocations: 0 / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.8076, allocations: 3.984 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.8076, allocations: 8 kB / 1.028 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.8076, allocations: 3.938 kB / 1.028 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.8079, allocations: 191.4 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/0.8079, allocations: 77.11 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.808, allocations: 7.984 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.8081, allocations: 8.188 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.8081, allocations: 7.984 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.8081, allocations: 11.94 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.456e-05/0.8082, allocations: 87.2 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8082, allocations: 0 / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002576/0.8084, allocations: 16 kB / 1.028 GB, free: 10.71 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.0001707/0.8086, allocations: 107.2 kB / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002675/0.8089, allocations: 67.89 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.8089, allocations: 0 / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.809, allocations: 36.17 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.8093, allocations: 18.45 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003635/0.8097, allocations: 172.4 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.8099, allocations: 0.6848 MB / 1.029 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.652e-05/0.81, allocations: 7.438 kB / 1.029 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of SimCode: time 4.2e-07/0.81, allocations: 0 / 1.029 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.002801/0.8128, allocations: 0.8108 MB / 1.03 GB, free: 8.766 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/jenkins1/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