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.008099/0.008099, allocations: 102 kB / 15.73 MB, free: 6.438 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.001081/0.001081, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.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.795/2.795, allocations: 390.2 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 62.66 kB / 0.9508 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3312, allocations: 140.4 MB / 1.088 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001914/0.3331, allocations: 0.6655 MB / 1.089 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.3346, allocations: 1.071 MB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.12e-05/0.3347, allocations: 0 / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.329e-05/0.3347, allocations: 7.875 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.377e-05/0.3348, allocations: 3.938 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.3351, allocations: 47.83 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.3352, allocations: 43.91 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.3354, allocations: 11.98 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.244e-05/0.3354, allocations: 23.88 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.235e-05/0.3355, allocations: 31.89 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.3355, allocations: 4 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.825e-05/0.3356, allocations: 19.98 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.086e-05/0.3356, allocations: 4 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.501e-05/0.3357, allocations: 19.86 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.3358, allocations: 63.78 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3358, allocations: 0 / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3358, allocations: 0 / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.3359, allocations: 0 / 1.09 GB, free: 15.47 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.0006594/0.3365, allocations: 371.4 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3366, allocations: 8.031 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.979e-05/0.3366, allocations: 4.938 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.3368, allocations: 172.2 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.3368, allocations: 4.375 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/0.3368, allocations: 8.359 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.337, allocations: 66.22 kB / 1.09 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3371, allocations: 4.188 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.3371, allocations: 3.938 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3371, allocations: 7.984 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.3373, allocations: 35.97 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005215/0.3378, allocations: 276.8 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.338, allocations: 62.48 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.666e-05/0.3381, allocations: 36.95 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.3381, allocations: 0 / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.3383, allocations: 71.38 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.3384, allocations: 4 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004463/0.3388, allocations: 137.5 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.3389, allocations: 51.41 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.339, allocations: 105.8 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.339, allocations: 25.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.3391, allocations: 84.14 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.3391, allocations: 27.59 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.3392, allocations: 25.7 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001856/0.3394, allocations: 322.8 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.376e-05/0.3395, allocations: 27.97 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.3396, allocations: 64.2 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.3398, allocations: 100.1 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3398, allocations: 256 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002663/0.3401, allocations: 109.7 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3401, allocations: 11.94 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3401, allocations: 4 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3402, allocations: 4 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.3403, allocations: 23.92 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.3403, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.933e-05/0.3404, allocations: 11.89 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.3404, allocations: 4 kB / 1.092 GB, free: 12.98 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 0.0001064/0.3405, allocations: 123.3 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.3405, allocations: 4 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.3408, allocations: 106 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3408, allocations: 0 / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3408, allocations: 4 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3408, allocations: 0 / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004393/0.3413, allocations: 366.4 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3413, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.035e-05/0.3413, allocations: 15.98 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3414, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.3414, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3414, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3414, allocations: 4 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/0.3417, allocations: 203.3 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.158e-05/0.3417, allocations: 81.11 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.3418, allocations: 0 / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.563e-05/0.3419, allocations: 7.984 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/0.3419, allocations: 4 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.342, allocations: 11.88 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.494e-05/0.342, allocations: 87.27 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.342, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002451/0.3423, allocations: 32.03 kB / 1.093 GB, free: 11.85 MB / 0.8575 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.0001764/0.3425, allocations: 99.78 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002666/0.3427, allocations: 75.81 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3427, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.3429, allocations: 35.91 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3431, allocations: 12.25 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003276/0.3435, allocations: 137.3 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.3437, allocations: 0.6807 MB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.059e-05/0.3438, allocations: 4.188 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.3438, allocations: 11.44 kB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of SimCode: time 1.9e-07/0.3438, allocations: 0 / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of Templates: time 0.003609/0.3474, allocations: 0.8428 MB / 1.095 GB, free: 9.902 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/jenkins/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