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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.01106/0.01106, allocations: 96.56 kB / 15.73 MB, free: 5.996 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.002038/0.002039, allocations: 186 kB / 16.67 MB, free: 5.926 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.646/1.646, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.286/3.286, allocations: 437 MB / 0.7105 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001589, allocations: 59.91 kB / 1.019 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4522/0.4539, allocations: 151.6 MB / 1.167 GB, free: 6.848 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002029/0.4559, allocations: 0.6756 MB / 1.167 GB, free: 6.168 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.4574, allocations: 1.062 MB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.4575, allocations: 0 / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.713e-05/0.4575, allocations: 7.922 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.552e-05/0.4576, allocations: 11.94 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003068/0.4579, allocations: 43.83 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.458, allocations: 51.84 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.4582, allocations: 7.984 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.152e-05/0.4582, allocations: 19.98 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.349e-05/0.4583, allocations: 23.86 kB / 1.168 GB, free: 4.926 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.4583, allocations: 4 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.562e-05/0.4584, allocations: 23.92 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.014e-05/0.4584, allocations: 11.98 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.777e-05/0.4585, allocations: 31.84 kB / 1.169 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.4587, allocations: 55.78 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.4587, allocations: 4 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.124e-06/0.4587, allocations: 0 / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.4587, allocations: 0 / 1.169 GB, free: 4.797 MB / 0.92 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.0006211/0.4593, allocations: 371.2 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.4594, allocations: 8.031 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/0.4594, allocations: 8.938 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.4596, allocations: 168.3 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.4596, allocations: 4.375 kB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.4596, allocations: 4.375 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.4598, allocations: 66.16 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.4598, allocations: 192 / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.4598, allocations: 7.938 kB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.4599, allocations: 0 / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.46, allocations: 47.95 kB / 1.169 GB, free: 4.031 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.4605, allocations: 276.8 kB / 1.169 GB, free: 3.711 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.4607, allocations: 66.42 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.361e-05/0.4608, allocations: 28.97 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.4608, allocations: 4 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002048/0.461, allocations: 79.44 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.461, allocations: 0 / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004107/0.4615, allocations: 125.5 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.4615, allocations: 55.39 kB / 1.17 GB, free: 3.316 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.425e-05/0.4616, allocations: 109.9 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.4616, allocations: 25.7 kB / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.4617, allocations: 92.06 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.478e-05/0.4617, allocations: 19.86 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.82e-05/0.4618, allocations: 25.7 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4619, allocations: 318.8 kB / 1.17 GB, free: 2.703 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.554e-05/0.462, allocations: 23.97 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.4621, allocations: 64.27 kB / 1.17 GB, free: 2.602 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.4623, allocations: 100.1 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4623, allocations: 0 / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002628/0.4626, allocations: 113.5 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.4626, allocations: 4 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4626, allocations: 4 kB / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4627, allocations: 3.984 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.4628, allocations: 24.05 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4628, allocations: 4 kB / 1.171 GB, free: 2.332 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.735e-05/0.4629, allocations: 7.953 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.4629, allocations: 8 kB / 1.171 GB, free: 2.316 MB / 0.92 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.0001007/0.463, allocations: 125.7 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.103e-05/0.463, allocations: 0 / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002795/0.4633, allocations: 117.9 kB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4633, allocations: 0 / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4633, allocations: 0 / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4633, allocations: 0 / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004194/0.4637, allocations: 358.8 kB / 1.171 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4638, allocations: 0 / 1.171 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.953e-05/0.4638, allocations: 16.17 kB / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.4638, allocations: 3.938 kB / 1.171 GB, free: 1.637 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.4639, allocations: 12 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4639, allocations: 0 / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.4639, allocations: 0 / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.4641, allocations: 199.5 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.4642, allocations: 81.06 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.4642, allocations: 7.984 kB / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.724e-05/0.4643, allocations: 12 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.4644, allocations: 7.984 kB / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.4644, allocations: 3.938 kB / 1.172 GB, free: 1.285 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.587e-05/0.4644, allocations: 83.28 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4644, allocations: 192 / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002408/0.4647, allocations: 15.98 kB / 1.172 GB, free: 1.188 MB / 0.92 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.0001505/0.4648, allocations: 115.1 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002554/0.4651, allocations: 71.88 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4651, allocations: 0 / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.4652, allocations: 31.98 kB / 1.172 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.4655, allocations: 11.98 kB / 1.172 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00034/0.4658, allocations: 137.5 kB / 1.172 GB, free: 0.793 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.4661, allocations: 0.6926 MB / 1.173 GB, free: 76 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.292e-05/0.4662, allocations: 4 kB / 1.173 GB, free: 72 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.4662, allocations: 15.44 kB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of SimCode: time 4.7e-07/0.4662, allocations: 0 / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of Templates: time 0.003364/0.4696, allocations: 0.8377 MB / 1.174 GB, free: 15.22 MB / 0.9356 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/jenkins/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