Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.394/1.394, allocations: 251.9 MB / 266.9 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001243/0.001243, allocations: 180.5 kB / 326.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.92/1.92, allocations: 205.4 MB / 0.5775 GB, free: 20.32 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009038/0.0009034, allocations: 93.8 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000625/0.000625, allocations: 9.625 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2397, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.4411, allocations: 131.7 MB / 1.029 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.4415, allocations: 71.95 kB / 1.029 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002981/0.4445, allocations: 0.8644 MB / 1.03 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.896e-06/0.4445, allocations: 0 / 1.03 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.685e-06/0.4445, allocations: 4 kB / 1.03 GB, free: 11.18 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005667/0.4451, allocations: 371.1 kB / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.4451, allocations: 8.031 kB / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.306e-05/0.4452, allocations: 4 kB / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.4453, allocations: 175 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.4454, allocations: 4 kB / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.4454, allocations: 8 kB / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.4457, allocations: 69.64 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.4457, allocations: 3.938 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.4457, allocations: 0 / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.4457, allocations: 0 / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002583/0.446, allocations: 59.94 kB / 1.03 GB, free: 10.4 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.4465, allocations: 284.8 kB / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.4467, allocations: 66.61 kB / 1.031 GB, free: 9.996 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.4468, allocations: 3.938 kB / 1.031 GB, free: 9.992 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/0.447, allocations: 71.52 kB / 1.031 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.4471, allocations: 4 kB / 1.031 GB, free: 9.906 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0005234/0.4476, allocations: 133.6 kB / 1.031 GB, free: 9.77 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.4477, allocations: 55.34 kB / 1.031 GB, free: 9.703 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.812e-05/0.4478, allocations: 108.9 kB / 1.031 GB, free: 9.59 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.4478, allocations: 25.7 kB / 1.031 GB, free: 9.559 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.56e-05/0.4479, allocations: 92.05 kB / 1.031 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.4479, allocations: 23.8 kB / 1.031 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.4479, allocations: 0 / 1.031 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.4481, allocations: 314.8 kB / 1.031 GB, free: 9.125 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.4482, allocations: 35.97 kB / 1.031 GB, free: 9.09 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.4484, allocations: 56.28 kB / 1.031 GB, free: 9.02 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.4486, allocations: 39.97 kB / 1.032 GB, free: 8.98 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4486, allocations: 0 / 1.032 GB, free: 8.98 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003567/0.4489, allocations: 117.7 kB / 1.032 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.449, allocations: 4 kB / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.449, allocations: 0 / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.449, allocations: 4 kB / 1.032 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.4492, allocations: 19.92 kB / 1.032 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.4492, allocations: 0 / 1.032 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.4493, allocations: 15.98 kB / 1.032 GB, free: 8.816 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.4493, allocations: 15.92 kB / 1.032 GB, free: 8.801 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001125/0.4494, allocations: 118 kB / 1.032 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.936e-05/0.4495, allocations: 7.906 kB / 1.032 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003891/0.4499, allocations: 110 kB / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.4499, allocations: 8 kB / 1.032 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.4499, allocations: 0 / 1.032 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.4499, allocations: 3.984 kB / 1.032 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005929/0.4505, allocations: 346.5 kB / 1.032 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4505, allocations: 4 kB / 1.032 GB, free: 8.152 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.022e-05/0.4506, allocations: 19.92 kB / 1.032 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4507, allocations: 4 kB / 1.032 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.4507, allocations: 0 / 1.032 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.4507, allocations: 0 / 1.032 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.4507, allocations: 3.984 kB / 1.032 GB, free: 8.125 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003858/0.4511, allocations: 200.7 kB / 1.032 GB, free: 7.914 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.448e-05/0.4512, allocations: 81.11 kB / 1.033 GB, free: 7.816 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.396e-05/0.4512, allocations: 7.938 kB / 1.033 GB, free: 7.809 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.4514, allocations: 15.98 kB / 1.033 GB, free: 7.793 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.507e-05/0.4514, allocations: 7.984 kB / 1.033 GB, free: 7.785 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.4514, allocations: 4 kB / 1.033 GB, free: 7.781 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.348e-05/0.4515, allocations: 87.23 kB / 1.033 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4515, allocations: 0 / 1.033 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004044/0.4519, allocations: 15.98 kB / 1.033 GB, free: 7.68 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00015/0.4521, allocations: 107.1 kB / 1.033 GB, free: 7.562 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003253/0.4524, allocations: 71.95 kB / 1.033 GB, free: 7.492 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4524, allocations: 3.938 kB / 1.033 GB, free: 7.488 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.4526, allocations: 35.97 kB / 1.033 GB, free: 7.453 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.4528, allocations: 4.312 kB / 1.033 GB, free: 7.449 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.4532, allocations: 148.8 kB / 1.033 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.4535, allocations: 0.6848 MB / 1.034 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.749e-05/0.4536, allocations: 4.188 kB / 1.034 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.316e-05/0.4536, allocations: 11.44 kB / 1.034 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of SimCode: time 3.21e-07/0.4536, allocations: 4 kB / 1.034 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of Templates: time 0.002448/0.4561, allocations: 0.5503 MB / 1.034 GB, free: 5.996 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches