Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.48/2.48, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.00143/0.00143, allocations: 175.5 kB / 0.4902 GB, free: 2.25 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.641/1.641, allocations: 223.1 MB / 0.7992 GB, free: 14.72 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.0009261/0.0009262, allocations: 100.7 kB / 0.9396 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005521/0.0005526, allocations: 10.91 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3098, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1913/0.5012, allocations: 150.1 MB / 1.376 GB, free: 3.332 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.5014, allocations: 67.95 kB / 1.376 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003683/0.5051, allocations: 1.174 MB / 1.377 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.864e-06/0.5052, allocations: 0 / 1.377 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.862e-06/0.5052, allocations: 0 / 1.377 GB, free: 2.086 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005276/0.5057, allocations: 379.2 kB / 1.377 GB, free: 1.668 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.5058, allocations: 8.562 kB / 1.377 GB, free: 1.66 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.5058, allocations: 11.91 kB / 1.377 GB, free: 1.648 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.506, allocations: 174.9 kB / 1.378 GB, free: 1.438 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.506, allocations: 8 kB / 1.378 GB, free: 1.43 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.506, allocations: 8 kB / 1.378 GB, free: 1.422 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.5063, allocations: 89.58 kB / 1.378 GB, free: 1.328 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.5063, allocations: 0 / 1.378 GB, free: 1.328 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.5063, allocations: 3.938 kB / 1.378 GB, free: 1.324 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.5063, allocations: 0 / 1.378 GB, free: 1.324 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.5065, allocations: 71.89 kB / 1.378 GB, free: 1.254 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.5072, allocations: 324.8 kB / 1.378 GB, free: 0.8867 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.5074, allocations: 86.55 kB / 1.378 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.5074, allocations: 0 / 1.378 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.5077, allocations: 107.3 kB / 1.378 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.833e-06/0.5077, allocations: 0 / 1.378 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0005063/0.5082, allocations: 189.5 kB / 1.378 GB, free: 496 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.5082, allocations: 55.36 kB / 1.378 GB, free: 428 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.762e-05/0.5083, allocations: 101 kB / 1.379 GB, free: 320 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.5084, allocations: 29.7 kB / 1.379 GB, free: 284 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.318e-05/0.5084, allocations: 100.2 kB / 1.379 GB, free: 176 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.617e-05/0.5085, allocations: 23.66 kB / 1.379 GB, free: 152 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/0.5085, allocations: 0 / 1.379 GB, free: 152 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5087, allocations: 322.8 kB / 1.379 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.5088, allocations: 43.97 kB / 1.379 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.5089, allocations: 62.55 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.5091, allocations: 53.73 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.5091, allocations: 0 / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003341/0.5094, allocations: 153.5 kB / 1.379 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.5095, allocations: 12.06 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.5095, allocations: 0 / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.5095, allocations: 3.984 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.5097, allocations: 23.98 kB / 1.379 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.5097, allocations: 0 / 1.379 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.524e-05/0.5098, allocations: 15.89 kB / 1.379 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.5098, allocations: 8 kB / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 () * Number of clocked 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 0.0001145/0.5099, allocations: 130.5 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.5099, allocations: 7.906 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003757/0.5103, allocations: 153.9 kB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.5103, allocations: 0 / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.5104, allocations: 0 / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.5104, allocations: 4.469 kB / 1.38 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005552/0.5109, allocations: 418.4 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5109, allocations: 0 / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.932e-05/0.511, allocations: 19.98 kB / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.511, allocations: 0 / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.5111, allocations: 256 / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.538e-06/0.5111, allocations: 7.984 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.5111, allocations: 11.88 kB / 1.38 GB, free: 14.63 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003784/0.5115, allocations: 247.3 kB / 1.38 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.5115, allocations: 85.09 kB / 1.38 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.5116, allocations: 0 / 1.38 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.5117, allocations: 15.98 kB / 1.38 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.092e-05/0.5117, allocations: 7.984 kB / 1.38 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.5118, allocations: 3.953 kB / 1.38 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.656e-05/0.5118, allocations: 99.2 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1e-07/0.5118, allocations: 0 / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002669/0.5121, allocations: 27.84 kB / 1.381 GB, free: 14.12 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0002195/0.5123, allocations: 117.2 kB / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003491/0.5127, allocations: 107.9 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5127, allocations: 0 / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.5128, allocations: 51.91 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.513, allocations: 8 kB / 1.381 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004132/0.5135, allocations: 169.8 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.5138, allocations: 0.6887 MB / 1.382 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.508e-05/0.5138, allocations: 12.42 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.5e-05/0.5139, allocations: 15.38 kB / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of SimCode: time 3.91e-07/0.5139, allocations: 0 / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of Templates: time 0.003519/0.5174, allocations: 0.8645 MB / 1.383 GB, free: 12.04 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches