Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 111.4 kB / 16.42 MB, free: 6.496 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.002037/0.002037, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 15.16 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.333/2.333, allocations: 390.2 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 63.91 kB / 0.9515 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8825/0.8839, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001999/0.886, allocations: 0.6739 MB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.8872, allocations: 1.061 MB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.922e-05/0.8873, allocations: 1.062 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.823e-05/0.8873, allocations: 0 / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.684e-05/0.8874, allocations: 10.09 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003097/0.8877, allocations: 42.03 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.8879, allocations: 46.81 kB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.888, allocations: 19.19 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.686e-05/0.8881, allocations: 19 kB / 1.09 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.914e-05/0.8881, allocations: 25.56 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.8882, allocations: 3.375 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.976e-05/0.8882, allocations: 19.28 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.278e-05/0.8883, allocations: 11.89 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.605e-05/0.8883, allocations: 20.05 kB / 1.091 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.8885, allocations: 63.2 kB / 1.091 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8885, allocations: 0 / 1.091 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8885, allocations: 4.719 kB / 1.091 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.8885, allocations: 0 / 1.091 GB, free: 4.184 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005628/0.8891, allocations: 371 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.8891, allocations: 8.922 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.888e-05/0.8892, allocations: 4.125 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.493e-05/0.8893, allocations: 169.4 kB / 1.091 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.8893, allocations: 6.438 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.8893, allocations: 7.438 kB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.8895, allocations: 68.42 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.8895, allocations: 1.312 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.8896, allocations: 3.938 kB / 1.091 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.8896, allocations: 1.75 kB / 1.091 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.8898, allocations: 47.2 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004353/0.8902, allocations: 275 kB / 1.091 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.8904, allocations: 57.95 kB / 1.092 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.8905, allocations: 36.91 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.8905, allocations: 5.828 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001912/0.8907, allocations: 89.36 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.8908, allocations: 0 / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004263/0.8912, allocations: 121.8 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.8912, allocations: 53.05 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.932e-05/0.8913, allocations: 105.2 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.8913, allocations: 26.55 kB / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/0.8914, allocations: 95.33 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.8914, allocations: 19.22 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.8914, allocations: 22.77 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.228e-05/0.8915, allocations: 318.6 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.8916, allocations: 28.64 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.8917, allocations: 62.95 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.8919, allocations: 89.55 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.8919, allocations: 3.938 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002713/0.8922, allocations: 114.2 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.8922, allocations: 5.406 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.8923, allocations: 2.078 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.8923, allocations: 2.281 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.8924, allocations: 20.39 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.8924, allocations: 2.391 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.003e-05/0.8925, allocations: 15.59 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.8925, allocations: 4.078 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 6.867e-05/0.8926, allocations: 122.7 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.8926, allocations: 2.25 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.8929, allocations: 111.5 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.8929, allocations: 1.594 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.8929, allocations: 0 / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.228e-05/0.8929, allocations: 91.25 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.893, allocations: 5.953 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.354e-05/0.893, allocations: 8.172 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.8931, allocations: 9.375 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003162/0.8934, allocations: 182.3 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003112/0.8937, allocations: 274.3 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001197/0.8939, allocations: 27.81 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.342e-05/0.8939, allocations: 86.5 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of Backend: time 2.164e-06/0.8939, allocations: 0 / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004773/0.8944, allocations: 138.6 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0003739/0.8948, allocations: 0.5852 MB / 1.094 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of Templates: time 0.003876/0.8987, allocations: 0.9372 MB / 1.095 GB, free: 0.7422 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches