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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.505/2.505, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 181.5 kB / 498.1 MB, free: 5.742 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 223.2 MB / 0.7948 GB, free: 17.81 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 95.88 kB / 0.9346 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005014/0.0005017, allocations: 16.03 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3337, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.5339, allocations: 149.2 MB / 1.369 GB, free: 12.84 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.5342, allocations: 71.95 kB / 1.369 GB, free: 12.77 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003396/0.5376, allocations: 1.051 MB / 1.37 GB, free: 11.72 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.374e-06/0.5376, allocations: 0 / 1.37 GB, free: 11.72 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.978e-06/0.5376, allocations: 4 kB / 1.37 GB, free: 11.71 MB / 0.8698 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.0005246/0.5382, allocations: 355.2 kB / 1.37 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/0.5382, allocations: 16.02 kB / 1.37 GB, free: 11.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.873e-05/0.5383, allocations: 0 / 1.37 GB, free: 11.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.5385, allocations: 178.9 kB / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.5385, allocations: 0 / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.5385, allocations: 4 kB / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.5388, allocations: 73.55 kB / 1.37 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.5388, allocations: 0 / 1.37 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.5388, allocations: 0 / 1.37 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.5388, allocations: 3.984 kB / 1.37 GB, free: 11 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.539, allocations: 55.95 kB / 1.37 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005488/0.5396, allocations: 276.9 kB / 1.371 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.5398, allocations: 50.5 kB / 1.371 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.5398, allocations: 8.078 kB / 1.371 GB, free: 10.56 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.54, allocations: 71.39 kB / 1.371 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=5): time 1.704e-06/0.5401, allocations: 0 / 1.371 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.0004333/0.5405, allocations: 121.5 kB / 1.371 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.5406, allocations: 59.34 kB / 1.371 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.946e-05/0.5407, allocations: 104.9 kB / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.5407, allocations: 29.7 kB / 1.371 GB, free: 10.14 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/0.5408, allocations: 88.12 kB / 1.371 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.5408, allocations: 15.75 kB / 1.371 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.5408, allocations: 8 kB / 1.371 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.541, allocations: 310.8 kB / 1.371 GB, free: 9.715 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.5411, allocations: 27.97 kB / 1.371 GB, free: 9.688 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.5412, allocations: 51.42 kB / 1.372 GB, free: 9.625 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.5413, allocations: 35.97 kB / 1.372 GB, free: 9.59 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.5413, allocations: 0 / 1.372 GB, free: 9.59 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000284/0.5416, allocations: 113.5 kB / 1.372 GB, free: 9.473 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.5417, allocations: 4 kB / 1.372 GB, free: 9.469 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.5417, allocations: 0 / 1.372 GB, free: 9.469 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.5417, allocations: 4 kB / 1.372 GB, free: 9.465 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.5418, allocations: 20.11 kB / 1.372 GB, free: 9.445 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.5418, allocations: 0 / 1.372 GB, free: 9.445 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.5419, allocations: 19.88 kB / 1.372 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.5419, allocations: 0 / 1.372 GB, free: 9.426 MB / 0.8698 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 0.0001165/0.5421, allocations: 113.8 kB / 1.372 GB, free: 9.305 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.5421, allocations: 7.906 kB / 1.372 GB, free: 9.297 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002954/0.5424, allocations: 105.5 kB / 1.372 GB, free: 9.188 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.5424, allocations: 0 / 1.372 GB, free: 9.188 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.5424, allocations: 0 / 1.372 GB, free: 9.188 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.5424, allocations: 4 kB / 1.372 GB, free: 9.184 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004813/0.5429, allocations: 354.8 kB / 1.372 GB, free: 8.781 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.5429, allocations: 4 kB / 1.372 GB, free: 8.777 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.95e-05/0.543, allocations: 15.98 kB / 1.372 GB, free: 8.762 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.543, allocations: 0 / 1.372 GB, free: 8.762 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.543, allocations: 4 kB / 1.372 GB, free: 8.758 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.543, allocations: 4 kB / 1.372 GB, free: 8.754 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.543, allocations: 3.953 kB / 1.372 GB, free: 8.75 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.5433, allocations: 187.4 kB / 1.372 GB, free: 8.551 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.334e-05/0.5434, allocations: 77.11 kB / 1.373 GB, free: 8.457 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.5434, allocations: 8 kB / 1.373 GB, free: 8.449 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.53e-05/0.5435, allocations: 7.984 kB / 1.373 GB, free: 8.441 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.5436, allocations: 7.984 kB / 1.373 GB, free: 8.434 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.5436, allocations: 3.953 kB / 1.373 GB, free: 8.43 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.929e-05/0.5437, allocations: 95.2 kB / 1.373 GB, free: 8.336 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5437, allocations: 0 / 1.373 GB, free: 8.336 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002494/0.5439, allocations: 8 kB / 1.373 GB, free: 8.328 MB / 0.8698 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.0001976/0.5441, allocations: 127 kB / 1.373 GB, free: 8.191 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002571/0.5444, allocations: 67.83 kB / 1.373 GB, free: 8.125 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.5444, allocations: 0 / 1.373 GB, free: 8.125 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.5446, allocations: 40.22 kB / 1.373 GB, free: 8.086 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.5447, allocations: 0.625 kB / 1.373 GB, free: 8.086 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003703/0.5451, allocations: 136.6 kB / 1.373 GB, free: 7.926 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.5454, allocations: 0.6926 MB / 1.374 GB, free: 7.207 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.339e-05/0.5455, allocations: 0 / 1.374 GB, free: 7.207 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.367e-05/0.5455, allocations: 11.44 kB / 1.374 GB, free: 7.195 MB / 0.8698 GB Notification: Performance of SimCode: time 3.61e-07/0.5455, allocations: 0 / 1.374 GB, free: 7.195 MB / 0.8698 GB Notification: Performance of Templates: time 0.003117/0.5486, allocations: 0.6355 MB / 1.374 GB, free: 6.566 MB / 0.8698 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches