Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_9_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_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 107.6 kB / 16.41 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 188.3 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.293/2.293, allocations: 390.2 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 59.91 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9295/0.931, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.003338/0.9344, allocations: 0.6832 MB / 1.089 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00234/0.9368, allocations: 1.07 MB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.9369, allocations: 4.75 kB / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.712e-05/0.9371, allocations: 3.938 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.9372, allocations: 6.719 kB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005777/0.9378, allocations: 48.11 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.9381, allocations: 69.03 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.9383, allocations: 14.78 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.9384, allocations: 30.14 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.259e-05/0.9385, allocations: 29.5 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.9386, allocations: 6.438 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.9387, allocations: 20.61 kB / 1.091 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.9387, allocations: 21.59 kB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.526e-05/0.9388, allocations: 26.92 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.939, allocations: 76.67 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.9391, allocations: 0 / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.255e-06/0.9391, allocations: 1.125 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.173e-06/0.9391, allocations: 4 kB / 1.091 GB, free: 4.121 MB / 0.8575 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.0007164/0.9398, allocations: 380.2 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.9399, allocations: 8.781 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.614e-05/0.9399, allocations: 9.031 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.94, allocations: 169.4 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.9401, allocations: 4.297 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.9401, allocations: 9.234 kB / 1.091 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002528/0.9404, allocations: 86.78 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.9404, allocations: 4.125 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.9404, allocations: 5.656 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.9404, allocations: 1.438 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002229/0.9406, allocations: 56.66 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006052/0.9413, allocations: 316.2 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.9415, allocations: 84.89 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.9417, allocations: 44.67 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.9417, allocations: 1.125 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00031/0.942, allocations: 90.92 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 3.717e-06/0.942, allocations: 3.984 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.000616/0.9426, allocations: 173 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.9427, allocations: 55.42 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.9428, allocations: 108.8 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.9428, allocations: 28.92 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.026e-05/0.9429, allocations: 92 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.951e-05/0.943, allocations: 26.02 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.943, allocations: 34.03 kB / 1.092 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.9431, allocations: 315.3 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.9433, allocations: 44.5 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.9435, allocations: 56.66 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.9437, allocations: 103.3 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.9437, allocations: 3.938 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003455/0.9441, allocations: 141.8 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.9441, allocations: 9.469 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.9441, allocations: 1.938 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.9441, allocations: 1.469 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.9443, allocations: 27.64 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.9443, allocations: 1.844 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.706e-05/0.9444, allocations: 15.12 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.9444, allocations: 5.109 kB / 1.093 GB, free: 2.121 MB / 0.8575 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 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.148e-05/0.9445, allocations: 128.6 kB / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.9445, allocations: 11.53 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003615/0.9449, allocations: 147.4 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.9449, allocations: 1.984 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.9449, allocations: 0 / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.885e-05/0.945, allocations: 87.78 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.945, allocations: 5.766 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.695e-05/0.9451, allocations: 9.719 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.9451, allocations: 13.98 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003773/0.9455, allocations: 222.9 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003769/0.9459, allocations: 302 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001426/0.9461, allocations: 47.61 kB / 1.094 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.647e-05/0.9461, allocations: 85.98 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of Backend: time 3.81e-07/0.9461, allocations: 288 / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005721/0.9467, allocations: 141.2 kB / 1.094 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0004826/0.9472, allocations: 0.6051 MB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of Templates: time 0.004744/0.9519, allocations: 1.142 MB / 1.096 GB, free: 0.5312 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches