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.536/1.536, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.00117/0.00117, allocations: 174.1 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.4 MB / 0.5775 GB, free: 20.33 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.0008741/0.000874, allocations: 84.14 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003344, allocations: 9.562 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2321, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.404, allocations: 131.8 MB / 1.029 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.4043, allocations: 75.94 kB / 1.029 GB, free: 11.87 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002557/0.4069, allocations: 0.9512 MB / 1.03 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.355e-06/0.4069, allocations: 0 / 1.03 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.4069, allocations: 0 / 1.03 GB, free: 10.91 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004927/0.4074, allocations: 379 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.4075, allocations: 16.02 kB / 1.03 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.4075, allocations: 4 kB / 1.03 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.4077, allocations: 174.9 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.4077, allocations: 4 kB / 1.03 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.4077, allocations: 8 kB / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.408, allocations: 89.58 kB / 1.03 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.408, allocations: 0 / 1.03 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.408, allocations: 4 kB / 1.03 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-06/0.408, allocations: 0 / 1.03 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.4082, allocations: 67.95 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000572/0.4088, allocations: 328.7 kB / 1.031 GB, free: 9.719 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.409, allocations: 86.53 kB / 1.031 GB, free: 9.625 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.4091, allocations: 4 kB / 1.031 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.4093, allocations: 99.48 kB / 1.031 GB, free: 9.512 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.4093, allocations: 0 / 1.031 GB, free: 9.512 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0004825/0.4098, allocations: 185.5 kB / 1.031 GB, free: 9.324 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.4099, allocations: 63.41 kB / 1.031 GB, free: 9.25 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.525e-05/0.4099, allocations: 105 kB / 1.031 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.41, allocations: 25.81 kB / 1.031 GB, free: 9.109 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.41, allocations: 96.3 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.4101, allocations: 27.64 kB / 1.032 GB, free: 8.98 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.373e-06/0.4101, allocations: 4 kB / 1.032 GB, free: 8.977 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4102, allocations: 322.8 kB / 1.032 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.4104, allocations: 43.97 kB / 1.032 GB, free: 8.609 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.4105, allocations: 65.09 kB / 1.032 GB, free: 8.535 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.4106, allocations: 47.98 kB / 1.032 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4106, allocations: 0 / 1.032 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003107/0.4109, allocations: 161.5 kB / 1.032 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.411, allocations: 4 kB / 1.032 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.411, allocations: 0 / 1.032 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.411, allocations: 4 kB / 1.032 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.4111, allocations: 23.92 kB / 1.032 GB, free: 8.293 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.4111, allocations: 384 / 1.032 GB, free: 8.293 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.442e-05/0.4112, allocations: 19.89 kB / 1.032 GB, free: 8.273 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.4112, allocations: 4 kB / 1.032 GB, free: 8.27 MB / 0.6823 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 () * 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.0001001/0.4114, allocations: 129.7 kB / 1.032 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.4114, allocations: 11.92 kB / 1.032 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003477/0.4117, allocations: 146 kB / 1.032 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4117, allocations: 4 kB / 1.032 GB, free: 7.973 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.4118, allocations: 7.984 kB / 1.032 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4118, allocations: 0 / 1.032 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005079/0.4123, allocations: 422.3 kB / 1.033 GB, free: 7.496 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4123, allocations: 0 / 1.033 GB, free: 7.496 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.184e-05/0.4124, allocations: 15.98 kB / 1.033 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4124, allocations: 0 / 1.033 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.4124, allocations: 4 kB / 1.033 GB, free: 7.477 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.4124, allocations: 0 / 1.033 GB, free: 7.477 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4124, allocations: 0 / 1.033 GB, free: 7.477 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.4128, allocations: 255.3 kB / 1.033 GB, free: 7.211 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.775e-05/0.4128, allocations: 77.11 kB / 1.033 GB, free: 7.117 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.4128, allocations: 4 kB / 1.033 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.4129, allocations: 15.98 kB / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.413, allocations: 7.922 kB / 1.033 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.413, allocations: 4 kB / 1.033 GB, free: 7.086 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.801e-05/0.4131, allocations: 87.28 kB / 1.033 GB, free: 7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4131, allocations: 0 / 1.033 GB, free: 7 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002244/0.4133, allocations: 23.94 kB / 1.033 GB, free: 6.977 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: 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.0001289/0.4134, allocations: 99.25 kB / 1.033 GB, free: 6.867 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002901/0.4137, allocations: 112.1 kB / 1.034 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4137, allocations: 0.6719 kB / 1.034 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.4139, allocations: 55.91 kB / 1.034 GB, free: 6.703 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.4141, allocations: 6.234 kB / 1.034 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003952/0.4145, allocations: 173.5 kB / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.4148, allocations: 0.6887 MB / 1.034 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.624e-05/0.4148, allocations: 8.422 kB / 1.034 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.4149, allocations: 11.44 kB / 1.034 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of SimCode: time 3.01e-07/0.4149, allocations: 0 / 1.034 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of Templates: time 0.002825/0.4177, allocations: 0.743 MB / 1.035 GB, free: 5.023 MB / 0.6823 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