Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001077/0.001077, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 180.2 kB / 16.92 MB, free: 6.918 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.498/1.498, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.654/2.654, allocations: 437.8 MB / 0.7128 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.0003672, allocations: 8 kB / 0.8735 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7611/0.7615, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001011/0.7625, allocations: 404.9 kB / 1.024 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.7641, allocations: 1.05 MB / 1.025 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.6e-05/0.7642, allocations: 4 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.982e-05/0.7642, allocations: 4 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.163e-05/0.7643, allocations: 3.938 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.7646, allocations: 39.83 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.669e-05/0.7647, allocations: 47.91 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.999e-05/0.7648, allocations: 7.984 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.005e-05/0.7649, allocations: 19.92 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.206e-05/0.7649, allocations: 23.91 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.765, allocations: 4 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.39e-05/0.765, allocations: 19.92 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.801e-05/0.7651, allocations: 7.984 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.7651, allocations: 41.58 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.7652, allocations: 43.91 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.7653, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7653, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.7653, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 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.000595/0.7659, allocations: 369.4 kB / 1.026 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.7659, allocations: 12.03 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.122e-05/0.766, allocations: 8.828 kB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.7661, allocations: 168.4 kB / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.7661, allocations: 384 / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.7661, allocations: 4.375 kB / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.7664, allocations: 74.22 kB / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.7664, allocations: 192 / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.7664, allocations: 3.938 kB / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.7664, allocations: 0 / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.7667, allocations: 67.77 kB / 1.026 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.7671, allocations: 284.8 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.7673, allocations: 66.48 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.7675, allocations: 36.97 kB / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.7675, allocations: 0 / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.7677, allocations: 87.3 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.7677, allocations: 0 / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004664/0.7682, allocations: 133.6 kB / 1.027 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.7683, allocations: 55.41 kB / 1.027 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.644e-05/0.7684, allocations: 109.8 kB / 1.027 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.7684, allocations: 29.7 kB / 1.027 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.406e-05/0.7684, allocations: 87.98 kB / 1.027 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.7685, allocations: 23.86 kB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-05/0.7685, allocations: 17.72 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.7687, allocations: 318.8 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.7688, allocations: 31.98 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.7689, allocations: 64.27 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.7692, allocations: 108.1 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.7692, allocations: 0 / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003078/0.7695, allocations: 129.4 kB / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.7695, allocations: 8 kB / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.7695, allocations: 0 / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.7696, allocations: 4 kB / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.7697, allocations: 15.98 kB / 1.028 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.7697, allocations: 8.125 kB / 1.028 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.774e-05/0.7698, allocations: 15.98 kB / 1.028 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.7698, allocations: 4 kB / 1.028 GB, free: 11.59 MB / 0.7794 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 0.0001027/0.7699, allocations: 127.7 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.7699, allocations: 3.906 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000313/0.7703, allocations: 118 kB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.7703, allocations: 8.016 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.7703, allocations: 0 / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.7703, allocations: 0 / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.7708, allocations: 374.4 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.7708, allocations: 0 / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.055e-05/0.7709, allocations: 16.23 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.7709, allocations: 4.125 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.7709, allocations: 4 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.7709, allocations: 3.938 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.7709, allocations: 0 / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003178/0.7712, allocations: 215.4 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.7713, allocations: 81.02 kB / 1.029 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.7713, allocations: 4 kB / 1.029 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.7714, allocations: 15.98 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-05/0.7715, allocations: 7.984 kB / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.7715, allocations: 7.938 kB / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.2e-05/0.7715, allocations: 83.28 kB / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7716, allocations: 0 / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002508/0.7718, allocations: 12 kB / 1.029 GB, free: 10.42 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001608/0.772, allocations: 111.2 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002847/0.7723, allocations: 79.88 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.7723, allocations: 0 / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.7724, allocations: 52.16 kB / 1.029 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.7727, allocations: 4 kB / 1.029 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000364/0.7731, allocations: 176.4 kB / 1.029 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.7733, allocations: 0.6906 MB / 1.03 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.043e-05/0.7734, allocations: 15.44 kB / 1.03 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.7734, allocations: 0 / 1.03 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of Templates: time 0.002501/0.7759, allocations: 0.8956 MB / 1.031 GB, free: 8.355 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches