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.0009663/0.0009663, allocations: 91.53 kB / 15.36 MB, free: 0.7383 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.008001/0.008001, allocations: 172.2 kB / 16.26 MB, free: 6.676 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.533/1.533, allocations: 223.3 MB / 240.3 MB, free: 5.328 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 2.757/2.757, allocations: 437.8 MB / 0.7121 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003617, allocations: 8 kB / 0.8728 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7851/0.7855, allocations: 153.8 MB / 1.023 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0009914/0.7865, allocations: 400.8 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.788, allocations: 1.054 MB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.877e-05/0.788, allocations: 4 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.124e-05/0.7881, allocations: 3.984 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.09e-05/0.7881, allocations: 3.938 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002553/0.7884, allocations: 31.91 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.297e-05/0.7885, allocations: 47.84 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.7886, allocations: 8 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.71e-05/0.7887, allocations: 19.92 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.534e-05/0.7887, allocations: 27.91 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.7888, allocations: 4 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.09e-05/0.7888, allocations: 19.92 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.72e-05/0.7889, allocations: 3.984 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.204e-05/0.7889, allocations: 49.56 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.7891, allocations: 51.84 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.7891, allocations: 0 / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.204e-06/0.7891, allocations: 0 / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.7891, allocations: 0 / 1.025 GB, free: 14.05 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.0005705/0.7897, allocations: 369.4 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.7897, allocations: 16.02 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.709e-05/0.7898, allocations: 4.844 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.7899, allocations: 168.3 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.7899, allocations: 4.375 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.7899, allocations: 8.359 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.7902, allocations: 78.16 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.7902, allocations: 192 / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.7902, allocations: 3.938 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.7902, allocations: 3.938 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.7904, allocations: 59.95 kB / 1.025 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004762/0.7909, allocations: 280.8 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.7911, allocations: 62.48 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.7912, allocations: 40.97 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.7912, allocations: 0 / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.7915, allocations: 83.31 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.7915, allocations: 4 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004341/0.7919, allocations: 133.7 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.792, allocations: 55.41 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.024e-05/0.7921, allocations: 113.8 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.7921, allocations: 29.7 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.803e-05/0.7921, allocations: 88.06 kB / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.7922, allocations: 15.81 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.7922, allocations: 21.66 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.7923, allocations: 314.8 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.7924, allocations: 31.98 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.7926, allocations: 64.27 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.7928, allocations: 108.1 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7928, allocations: 0 / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002894/0.7931, allocations: 129.4 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.7932, allocations: 9.719 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.7932, allocations: 0 / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.7932, allocations: 4.25 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.7933, allocations: 20.11 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.7933, allocations: 8.312 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.216e-05/0.7934, allocations: 11.98 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.7934, allocations: 8 kB / 1.027 GB, free: 11.5 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.0001023/0.7935, allocations: 125.7 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.7936, allocations: 3.906 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/0.7939, allocations: 126.2 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.7939, allocations: 0 / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/0.7939, allocations: 3.938 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.7939, allocations: 3.938 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004836/0.7944, allocations: 374.4 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7944, allocations: 0 / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.7945, allocations: 15.98 kB / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.7945, allocations: 48 / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.7945, allocations: 3.984 kB / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7945, allocations: 0 / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7945, allocations: 4 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.7949, allocations: 215.4 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.129e-05/0.7949, allocations: 81.02 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.7949, allocations: 4 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.7951, allocations: 15.98 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.965e-05/0.7951, allocations: 7.984 kB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.7951, allocations: 7.938 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.832e-05/0.7952, allocations: 83.28 kB / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7952, allocations: 0 / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002467/0.7954, allocations: 12 kB / 1.028 GB, free: 10.32 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.0001638/0.7956, allocations: 111.2 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002703/0.7959, allocations: 75.89 kB / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.7959, allocations: 0 / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.796, allocations: 48.16 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.7963, allocations: 8 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003472/0.7967, allocations: 146.7 kB / 1.028 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.7969, allocations: 0.6926 MB / 1.029 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.55e-05/0.797, allocations: 4 kB / 1.029 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.312e-05/0.797, allocations: 11.38 kB / 1.029 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.797, allocations: 4 kB / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of Templates: time 0.003269/0.8003, allocations: 0.7459 MB / 1.03 GB, free: 8.438 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/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