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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.469/1.469, allocations: 249.5 MB / 257 MB, free: 6.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 183.4 kB / 316.3 MB, free: 3.234 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.534/1.534, allocations: 205.3 MB / 0.5671 GB, free: 15.82 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.0008499/0.0008499, allocations: 96.28 kB / 0.6714 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.756e-05/1.76e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2649, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.828/1.093, allocations: 132.1 MB / 1.014 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/1.093, allocations: 75.14 kB / 1.014 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002624/1.096, allocations: 0.9431 MB / 1.015 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.373e-06/1.096, allocations: 4 kB / 1.015 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.562e-06/1.096, allocations: 0 / 1.015 GB, free: 4.547 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005147/1.096, allocations: 361 kB / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/1.096, allocations: 16.02 kB / 1.016 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/1.097, allocations: 7.906 kB / 1.016 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/1.097, allocations: 171 kB / 1.016 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/1.097, allocations: 4.75 kB / 1.016 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/1.097, allocations: 4 kB / 1.016 GB, free: 3.918 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.942e-05/1.097, allocations: 26 kB / 1.016 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/1.097, allocations: 66.16 kB / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/1.097, allocations: 0 / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/1.097, allocations: 0 / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/1.097, allocations: 4 kB / 1.016 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005503/1.098, allocations: 310.2 kB / 1.016 GB, free: 3.52 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/1.098, allocations: 61.89 kB / 1.016 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.675e-05/1.098, allocations: 28.42 kB / 1.016 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/1.098, allocations: 4 kB / 1.016 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001285/1.098, allocations: 78.89 kB / 1.016 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/1.098, allocations: 0 / 1.016 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002542/1.098, allocations: 110.3 kB / 1.016 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/1.098, allocations: 55.41 kB / 1.016 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.286e-05/1.098, allocations: 99.67 kB / 1.017 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/1.098, allocations: 29.7 kB / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.435e-05/1.098, allocations: 84.19 kB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/1.099, allocations: 26.02 kB / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/1.099, allocations: 0 / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001472/1.099, allocations: 322.5 kB / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.445e-05/1.099, allocations: 22.06 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.909e-05/1.099, allocations: 53.8 kB / 1.017 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.694e-05/1.099, allocations: 30.91 kB / 1.017 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.099, allocations: 0 / 1.017 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001625/1.099, allocations: 101.7 kB / 1.017 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/1.099, allocations: 4 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/1.099, allocations: 4 kB / 1.017 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/1.099, allocations: 0 / 1.017 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/1.099, allocations: 23.92 kB / 1.017 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/1.099, allocations: 7.984 kB / 1.017 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.121e-05/1.099, allocations: 13.41 kB / 1.017 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/1.099, allocations: 7.438 kB / 1.017 GB, free: 2.406 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 8.995e-05/1.099, allocations: 117.4 kB / 1.017 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/1.099, allocations: 7.891 kB / 1.017 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002144/1.1, allocations: 113.4 kB / 1.017 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/1.1, allocations: 3.938 kB / 1.017 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/1.1, allocations: 3.938 kB / 1.017 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/1.1, allocations: 8 kB / 1.017 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003567/1.1, allocations: 354.2 kB / 1.018 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/1.1, allocations: 4 kB / 1.018 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.956e-05/1.1, allocations: 11.98 kB / 1.018 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/1.1, allocations: 0 / 1.018 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/1.1, allocations: 4.875 kB / 1.018 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/1.1, allocations: 0 / 1.018 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.1, allocations: 0 / 1.018 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/1.1, allocations: 206.5 kB / 1.018 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-05/1.101, allocations: 88.95 kB / 1.018 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/1.101, allocations: 3.984 kB / 1.018 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/1.101, allocations: 11 kB / 1.018 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.031e-05/1.101, allocations: 7.984 kB / 1.018 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/1.101, allocations: 8 kB / 1.018 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.08e-05/1.101, allocations: 90.64 kB / 1.018 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/1.101, allocations: 0 / 1.018 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002173/1.101, allocations: 12 kB / 1.018 GB, free: 1.359 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001455/1.101, allocations: 99.25 kB / 1.018 GB, free: 1.254 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001442/1.101, allocations: 66.69 kB / 1.018 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/1.101, allocations: 0 / 1.018 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.243e-05/1.101, allocations: 36.2 kB / 1.018 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001974/1.102, allocations: 16.27 kB / 1.018 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/1.102, allocations: 96.94 kB / 1.019 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/1.102, allocations: 0.6885 MB / 1.019 GB, free: 360 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.717e-05/1.102, allocations: 4.438 kB / 1.019 GB, free: 356 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/1.102, allocations: 18.94 kB / 1.019 GB, free: 340 kB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/1.102, allocations: 3.938 kB / 1.019 GB, free: 336 kB / 0.6355 GB Notification: Performance of Templates: time 0.00271/1.105, allocations: 0.7182 MB / 1.02 GB, free: 15.62 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches