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.305/2.305, allocations: 390.5 MB / 398 MB, free: 10.97 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.001326/0.001326, allocations: 179.9 kB / 491.2 MB, free: 1.609 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.678/1.678, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001154/0.001154, allocations: 96.45 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.74e-05/1.735e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2568, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8512/1.108, allocations: 149.4 MB / 1.358 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001738/1.108, allocations: 70.61 kB / 1.358 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003424/1.112, allocations: 1.162 MB / 1.359 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.363e-06/1.112, allocations: 0 / 1.359 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.33e-06/1.112, allocations: 0 / 1.359 GB, free: 33.17 MB / 0.8386 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.0003938/1.112, allocations: 377.3 kB / 1.36 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/1.112, allocations: 10.84 kB / 1.36 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.992e-05/1.112, allocations: 5.422 kB / 1.36 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.241e-05/1.112, allocations: 175.6 kB / 1.36 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/1.112, allocations: 5.844 kB / 1.36 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/1.112, allocations: 3.812 kB / 1.36 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.805e-05/1.112, allocations: 34.5 kB / 1.36 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.644e-05/1.113, allocations: 60.7 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/1.113, allocations: 0 / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/1.113, allocations: 5.062 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/1.113, allocations: 0 / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004699/1.113, allocations: 305.3 kB / 1.36 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.266e-05/1.113, allocations: 67.77 kB / 1.36 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.135e-05/1.113, allocations: 27.36 kB / 1.36 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/1.113, allocations: 5.469 kB / 1.36 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001062/1.113, allocations: 80.83 kB / 1.361 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 2.054e-06/1.113, allocations: 3.984 kB / 1.361 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0001913/1.114, allocations: 103.2 kB / 1.361 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.167e-05/1.114, allocations: 51.41 kB / 1.361 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.739e-05/1.114, allocations: 102.6 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/1.114, allocations: 29.58 kB / 1.361 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.023e-05/1.114, allocations: 88.89 kB / 1.361 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/1.114, allocations: 29.77 kB / 1.361 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-06/1.114, allocations: 0 / 1.361 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/1.114, allocations: 327.8 kB / 1.361 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.678e-05/1.114, allocations: 21.97 kB / 1.361 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-05/1.114, allocations: 43.58 kB / 1.361 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/1.114, allocations: 33.61 kB / 1.361 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/1.114, allocations: 0 / 1.361 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002013/1.114, allocations: 121 kB / 1.361 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/1.114, allocations: 3.969 kB / 1.361 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/1.114, allocations: 1.266 kB / 1.361 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/1.114, allocations: 3.875 kB / 1.361 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/1.115, allocations: 22.95 kB / 1.361 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/1.115, allocations: 7.812 kB / 1.361 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.1e-05/1.115, allocations: 11.22 kB / 1.361 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/1.115, allocations: 3.875 kB / 1.362 GB, free: 31.5 MB / 0.8386 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 () * 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 6.483e-05/1.115, allocations: 121.9 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/1.115, allocations: 3.844 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/1.115, allocations: 117.5 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/1.115, allocations: 3.844 kB / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/1.115, allocations: 0 / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/1.115, allocations: 0 / 1.362 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/1.115, allocations: 355.1 kB / 1.362 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/1.115, allocations: 5.25 kB / 1.362 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.33e-05/1.115, allocations: 14.14 kB / 1.362 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/1.115, allocations: 0 / 1.362 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/1.115, allocations: 8.359 kB / 1.362 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/1.115, allocations: 0 / 1.362 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.115, allocations: 0 / 1.362 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/1.115, allocations: 202.8 kB / 1.362 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.175e-05/1.115, allocations: 89.61 kB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/1.115, allocations: 1.125 kB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/1.116, allocations: 11.8 kB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/1.116, allocations: 7.516 kB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/1.116, allocations: 6.344 kB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.771e-05/1.116, allocations: 83.09 kB / 1.362 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.21e-07/1.116, allocations: 0 / 1.362 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00022/1.116, allocations: 16.64 kB / 1.363 GB, free: 30.75 MB / 0.8386 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.0001327/1.116, allocations: 123 kB / 1.363 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001212/1.116, allocations: 65.11 kB / 1.363 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/1.116, allocations: 0 / 1.363 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.201e-05/1.116, allocations: 33.73 kB / 1.363 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001669/1.116, allocations: 19.14 kB / 1.363 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002058/1.117, allocations: 102.6 kB / 1.363 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/1.117, allocations: 0.6923 MB / 1.364 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.528e-05/1.117, allocations: 9.594 kB / 1.364 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.365e-05/1.117, allocations: 12.55 kB / 1.364 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.117, allocations: 0 / 1.364 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of Templates: time 0.002476/1.119, allocations: 0.8366 MB / 1.364 GB, free: 29.78 MB / 0.8386 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