Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001087/0.001087, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.008814/0.008814, allocations: 170.6 kB / 16.27 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.497/1.497, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.5/2.5, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.000391, allocations: 8 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7891/0.7896, allocations: 142.4 MB / 0.9551 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.000977/0.7906, allocations: 399.2 kB / 0.9554 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001655/0.7923, allocations: 1.04 MB / 0.9564 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.831e-05/0.7923, allocations: 0 / 0.9564 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.7924, allocations: 0 / 0.9564 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.633e-05/0.7925, allocations: 5.375 kB / 0.9565 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002841/0.7928, allocations: 40.05 kB / 0.9565 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.843e-05/0.7929, allocations: 40.48 kB / 0.9565 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.793, allocations: 8.938 kB / 0.9565 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.241e-05/0.793, allocations: 9.641 kB / 0.9565 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.131e-05/0.7931, allocations: 21.58 kB / 0.9566 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.7931, allocations: 2.344 kB / 0.9566 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.107e-05/0.7932, allocations: 15.23 kB / 0.9566 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.798e-05/0.7932, allocations: 10.31 kB / 0.9566 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.177e-05/0.7933, allocations: 37.61 kB / 0.9566 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.7934, allocations: 56.19 kB / 0.9567 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.7934, allocations: 0 / 0.9567 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7934, allocations: 3.938 kB / 0.9567 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.7934, allocations: 0 / 0.9567 GB, free: 6.457 MB / 0.7169 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.0004848/0.7939, allocations: 358.7 kB / 0.957 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.794, allocations: 9.125 kB / 0.957 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/0.794, allocations: 7.219 kB / 0.957 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.947e-05/0.7941, allocations: 166.9 kB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.7942, allocations: 1.344 kB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.7942, allocations: 3.281 kB / 0.9572 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/0.7944, allocations: 62.67 kB / 0.9573 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.7944, allocations: 4.172 kB / 0.9573 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.7944, allocations: 5.469 kB / 0.9573 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.7944, allocations: 0 / 0.9573 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.7946, allocations: 55.84 kB / 0.9573 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004226/0.7951, allocations: 276.4 kB / 0.9576 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.7952, allocations: 56.7 kB / 0.9576 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.598e-05/0.7953, allocations: 29.12 kB / 0.9577 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.7954, allocations: 1.5 kB / 0.9577 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002048/0.7956, allocations: 83.09 kB / 0.9578 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.7956, allocations: 0 / 0.9578 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0004024/0.796, allocations: 116.7 kB / 0.9579 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.7961, allocations: 52.81 kB / 0.9579 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.7961, allocations: 115 kB / 0.958 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.7961, allocations: 29.7 kB / 0.9581 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.7962, allocations: 90.05 kB / 0.9581 GB, free: 5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.7962, allocations: 13.33 kB / 0.9582 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.7962, allocations: 12.19 kB / 0.9582 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.91e-05/0.7963, allocations: 321.6 kB / 0.9585 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.7964, allocations: 32.64 kB / 0.9585 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.7965, allocations: 55.73 kB / 0.9586 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.7967, allocations: 89.48 kB / 0.9586 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.7967, allocations: 8.406 kB / 0.9587 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002728/0.797, allocations: 111.5 kB / 0.9588 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.797, allocations: 5.5 kB / 0.9588 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.7971, allocations: 5 kB / 0.9588 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.7971, allocations: 1.031 kB / 0.9588 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.7972, allocations: 16.36 kB / 0.9588 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.7972, allocations: 1.125 kB / 0.9588 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.262e-05/0.7973, allocations: 11.52 kB / 0.9588 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.7973, allocations: 2.531 kB / 0.9588 GB, free: 4.441 MB / 0.7169 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 7.322e-05/0.7974, allocations: 129.9 kB / 0.9589 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.175e-05/0.7974, allocations: 5.25 kB / 0.9589 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.7977, allocations: 99.55 kB / 0.959 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.7977, allocations: 1.156 kB / 0.959 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.7977, allocations: 4.062 kB / 0.959 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.7977, allocations: 5.125 kB / 0.959 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.7981, allocations: 349.9 kB / 0.9594 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.7981, allocations: 0 / 0.9594 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.104e-05/0.7982, allocations: 21.58 kB / 0.9594 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.7982, allocations: 0 / 0.9594 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.7982, allocations: 2 kB / 0.9594 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.7982, allocations: 0 / 0.9594 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7982, allocations: 0 / 0.9594 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002454/0.7984, allocations: 195.2 kB / 0.9596 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.586e-05/0.7985, allocations: 86.44 kB / 0.9597 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.7985, allocations: 1.406 kB / 0.9597 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.116e-05/0.7986, allocations: 5.969 kB / 0.9597 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.7986, allocations: 5.359 kB / 0.9597 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.892e-06/0.7986, allocations: 6.219 kB / 0.9597 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.159e-05/0.7987, allocations: 85 kB / 0.9598 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7987, allocations: 7.938 kB / 0.9598 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002467/0.7989, allocations: 12.52 kB / 0.9598 GB, free: 3.508 MB / 0.7169 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.000151/0.7991, allocations: 102.8 kB / 0.9599 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003015/0.7994, allocations: 70.42 kB / 0.9599 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.7994, allocations: 0 / 0.9599 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.7995, allocations: 33.97 kB / 0.96 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.7998, allocations: 10.62 kB / 0.96 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003789/0.8002, allocations: 137.7 kB / 0.9601 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.8004, allocations: 0.685 MB / 0.9608 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.704e-05/0.8004, allocations: 6.734 kB / 0.9608 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/0.8005, allocations: 10.19 kB / 0.9608 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8005, allocations: 0 / 0.9608 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of Templates: time 0.003704/0.8042, allocations: 0.6635 MB / 0.9614 GB, free: 2.18 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches