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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001098/0.001098, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001474/0.001475, allocations: 172.7 kB / 15.95 MB, free: 208 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.56/1.56, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.641/2.641, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003738, allocations: 8 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8817/0.8821, allocations: 142.4 MB / 0.9544 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0007372/0.8829, allocations: 388.5 kB / 0.9548 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.884, allocations: 1.025 MB / 0.9558 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.219e-05/0.8841, allocations: 0 / 0.9558 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.99e-05/0.8841, allocations: 1.219 kB / 0.9558 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.962e-05/0.8842, allocations: 11.91 kB / 0.9558 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.8845, allocations: 29.7 kB / 0.9559 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.087e-05/0.8846, allocations: 37.8 kB / 0.9559 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.8847, allocations: 20.75 kB / 0.9559 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.154e-05/0.8848, allocations: 13.88 kB / 0.9559 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.623e-05/0.8849, allocations: 17.94 kB / 0.9559 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.8849, allocations: 1.469 kB / 0.9559 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.994e-05/0.885, allocations: 11.44 kB / 0.956 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.91e-05/0.885, allocations: 13.36 kB / 0.956 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.633e-05/0.885, allocations: 28.33 kB / 0.956 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.8852, allocations: 37.17 kB / 0.956 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.8852, allocations: 4 kB / 0.956 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.545e-06/0.8852, allocations: 1.156 kB / 0.956 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.8852, allocations: 0 / 0.956 GB, free: 6.453 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.0004912/0.8857, allocations: 358.1 kB / 0.9564 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.8857, allocations: 9.156 kB / 0.9564 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.414e-05/0.8858, allocations: 10.8 kB / 0.9564 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.091e-05/0.8859, allocations: 160.4 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.8859, allocations: 5.438 kB / 0.9566 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.8859, allocations: 6.781 kB / 0.9566 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000171/0.8861, allocations: 67.12 kB / 0.9566 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.8861, allocations: 0 / 0.9566 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.8861, allocations: 0 / 0.9566 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.8861, allocations: 1.25 kB / 0.9566 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001629/0.8863, allocations: 58.16 kB / 0.9567 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003794/0.8867, allocations: 268.8 kB / 0.9569 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.8868, allocations: 56.45 kB / 0.957 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.496e-05/0.8869, allocations: 30.09 kB / 0.957 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.8869, allocations: 0 / 0.957 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.8871, allocations: 83.78 kB / 0.9571 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.8871, allocations: 0 / 0.9571 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000363/0.8875, allocations: 124.7 kB / 0.9572 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.8875, allocations: 52.59 kB / 0.9573 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.63e-05/0.8876, allocations: 109.7 kB / 0.9574 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.8876, allocations: 30.77 kB / 0.9574 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.901e-05/0.8877, allocations: 90.28 kB / 0.9575 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.8877, allocations: 12.94 kB / 0.9575 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-06/0.8877, allocations: 5.031 kB / 0.9575 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.995e-05/0.8878, allocations: 319.9 kB / 0.9578 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.897e-05/0.8879, allocations: 26.12 kB / 0.9578 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.45e-05/0.888, allocations: 51.67 kB / 0.9579 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.274e-05/0.8881, allocations: 34.81 kB / 0.9579 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8881, allocations: 0 / 0.9579 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002287/0.8883, allocations: 115.4 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.8883, allocations: 4.812 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.8883, allocations: 5.469 kB / 0.958 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.8884, allocations: 5.578 kB / 0.958 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.8885, allocations: 20.58 kB / 0.9581 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.8885, allocations: 1.312 kB / 0.9581 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.8886, allocations: 15.42 kB / 0.9581 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.8886, allocations: 6.625 kB / 0.9581 GB, free: 4.496 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 ($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 7.553e-05/0.8887, allocations: 113 kB / 0.9582 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.8887, allocations: 1.312 kB / 0.9582 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002574/0.889, allocations: 107 kB / 0.9583 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.889, allocations: 5.047 kB / 0.9583 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.889, allocations: 3.984 kB / 0.9583 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.889, allocations: 1.281 kB / 0.9583 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003311/0.8893, allocations: 357.7 kB / 0.9586 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.8893, allocations: 0 / 0.9586 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.512e-05/0.8894, allocations: 9.188 kB / 0.9587 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.8894, allocations: 3.953 kB / 0.9587 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.8894, allocations: 5.172 kB / 0.9587 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.8894, allocations: 0 / 0.9587 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8894, allocations: 1.156 kB / 0.9587 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002284/0.8897, allocations: 186.8 kB / 0.9588 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.562e-05/0.8897, allocations: 82.58 kB / 0.9589 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.8897, allocations: 9.922 kB / 0.9589 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.068e-05/0.8898, allocations: 13.7 kB / 0.9589 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.8899, allocations: 10.14 kB / 0.959 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.8899, allocations: 2.062 kB / 0.959 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.66e-05/0.8899, allocations: 80.84 kB / 0.959 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8899, allocations: 0 / 0.959 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002416/0.8902, allocations: 11.66 kB / 0.959 GB, free: 3.578 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 (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.000139/0.8903, allocations: 110.1 kB / 0.9592 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002307/0.8906, allocations: 74.95 kB / 0.9592 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.8906, allocations: 0 / 0.9592 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.597e-05/0.8907, allocations: 28.86 kB / 0.9593 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.8909, allocations: 19.3 kB / 0.9593 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002741/0.8912, allocations: 128.2 kB / 0.9594 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.8913, allocations: 0.6812 MB / 0.9601 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.97e-05/0.8914, allocations: 6.938 kB / 0.9601 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.133e-05/0.8914, allocations: 17.81 kB / 0.9601 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8914, allocations: 0 / 0.9601 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of Templates: time 0.002838/0.8943, allocations: 0.649 MB / 0.9607 GB, free: 2.246 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