Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.002324/0.002325, allocations: 195.4 kB / 16.25 MB, free: 6.641 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.574/1.574, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.093/3.093, allocations: 472.7 MB / 0.7449 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 64.91 kB / 0.9116 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.443/0.4443, allocations: 159.9 MB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002323/0.4467, allocations: 0.7352 MB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.4482, allocations: 1.061 MB / 1.07 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.148e-05/0.4483, allocations: 4 kB / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.037e-05/0.4484, allocations: 0 / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.862e-05/0.4484, allocations: 3.938 kB / 1.07 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003224/0.4488, allocations: 39.89 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.4489, allocations: 51.92 kB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.449, allocations: 7.984 kB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.374e-05/0.4491, allocations: 27.86 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.841e-05/0.4492, allocations: 23.91 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.645e-05/0.4492, allocations: 4 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.138e-05/0.4493, allocations: 23.92 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.271e-05/0.4493, allocations: 15.92 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.609e-05/0.4493, allocations: 15.94 kB / 1.07 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.4495, allocations: 59.83 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4495, allocations: 4 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.653e-06/0.4495, allocations: 0 / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.4495, allocations: 0 / 1.07 GB, free: 8.656 MB / 0.8262 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.0006384/0.4502, allocations: 363.6 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.4502, allocations: 12.03 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.4503, allocations: 4.844 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.4504, allocations: 176.3 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.4504, allocations: 4.375 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.4505, allocations: 4.375 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.4507, allocations: 74.14 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.4507, allocations: 192 / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.4507, allocations: 3.938 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.4507, allocations: 0 / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.4509, allocations: 43.95 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005204/0.4514, allocations: 280.8 kB / 1.071 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.4516, allocations: 66.42 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.4517, allocations: 24.97 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.4518, allocations: 4 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002126/0.452, allocations: 75.38 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.452, allocations: 0 / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004304/0.4524, allocations: 125.6 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.4525, allocations: 55.41 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.856e-05/0.4526, allocations: 105.8 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.4526, allocations: 33.7 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.825e-05/0.4527, allocations: 84.05 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.4527, allocations: 23.73 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/0.4528, allocations: 21.72 kB / 1.071 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.4529, allocations: 318.8 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.753e-05/0.453, allocations: 23.98 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.4531, allocations: 60.27 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.4534, allocations: 100.1 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4534, allocations: 0 / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002708/0.4537, allocations: 117.7 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.4537, allocations: 4 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4537, allocations: 8.188 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4537, allocations: 0 / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.4539, allocations: 23.92 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.4539, allocations: 12.38 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.052e-05/0.454, allocations: 11.89 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.454, allocations: 4 kB / 1.072 GB, free: 6.176 MB / 0.8262 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.0001063/0.4541, allocations: 123.3 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.4541, allocations: 4 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003042/0.4544, allocations: 113.9 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.4544, allocations: 4 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4544, allocations: 0 / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.4545, allocations: 0 / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/0.4549, allocations: 362.4 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.4549, allocations: 0 / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.889e-05/0.455, allocations: 11.98 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.455, allocations: 3.938 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.455, allocations: 0 / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4551, allocations: 4 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4551, allocations: 0 / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.4554, allocations: 199.4 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.4554, allocations: 85.02 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.4555, allocations: 0 / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-05/0.4556, allocations: 7.984 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.4556, allocations: 15.98 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.4556, allocations: 3.938 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.578e-05/0.4557, allocations: 83.28 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4557, allocations: 0 / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002436/0.456, allocations: 12 kB / 1.073 GB, free: 5.059 MB / 0.8262 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.0001876/0.4561, allocations: 111.1 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002813/0.4564, allocations: 75.89 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4564, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.4566, allocations: 35.97 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.4569, allocations: 5.406 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003775/0.4572, allocations: 158.3 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.4575, allocations: 0.6807 MB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.179e-05/0.4576, allocations: 11.92 kB / 1.074 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/0.4576, allocations: 15.44 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of SimCode: time 1.944e-06/0.4576, allocations: 0 / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of Templates: time 0.003546/0.4612, allocations: 0.7825 MB / 1.075 GB, free: 3.141 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches