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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001111/0.001111, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.001227/0.001227, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 223.3 MB / 240 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.016/3.016, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005007/0.0005007, allocations: 16 kB / 0.9021 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3792, allocations: 159.6 MB / 1.058 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001317/0.3806, allocations: 387.3 kB / 1.058 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.3823, allocations: 1.05 MB / 1.059 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.475e-05/0.3824, allocations: 0 / 1.059 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.253e-05/0.3824, allocations: 4 kB / 1.059 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.92e-05/0.3825, allocations: 7.938 kB / 1.059 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.3828, allocations: 35.89 kB / 1.059 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.417e-05/0.3829, allocations: 39.92 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.3831, allocations: 7.984 kB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.616e-05/0.3832, allocations: 19.92 kB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.904e-05/0.3833, allocations: 23.91 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.3833, allocations: 4 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.251e-05/0.3834, allocations: 11.98 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.3834, allocations: 15.92 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.048e-05/0.3835, allocations: 29.7 kB / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.3836, allocations: 35.92 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.3836, allocations: 7.938 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.667e-06/0.3837, allocations: 0 / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.3837, allocations: 0 / 1.06 GB, free: 3.629 MB / 0.8106 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.000708/0.3844, allocations: 375.4 kB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.3844, allocations: 8.031 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.3845, allocations: 4 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.3846, allocations: 167 kB / 1.06 GB, free: 3 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.3847, allocations: 4 kB / 1.06 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.3847, allocations: 7.953 kB / 1.06 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.3849, allocations: 69.66 kB / 1.06 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3849, allocations: 4 kB / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.3849, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.3849, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.3851, allocations: 55.89 kB / 1.06 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005218/0.3857, allocations: 288.7 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.3858, allocations: 66.53 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.74e-05/0.3859, allocations: 40.95 kB / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.539e-05/0.386, allocations: 0 / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.3862, allocations: 83.44 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.784e-06/0.3862, allocations: 0 / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004192/0.3867, allocations: 141.6 kB / 1.061 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.3867, allocations: 51.41 kB / 1.061 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.714e-05/0.3868, allocations: 105.9 kB / 1.061 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.3868, allocations: 33.69 kB / 1.061 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.3869, allocations: 84.05 kB / 1.061 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.3869, allocations: 19.75 kB / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.3869, allocations: 0 / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3871, allocations: 326.8 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.464e-05/0.3872, allocations: 23.98 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.3873, allocations: 72.2 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.3874, allocations: 43.97 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3874, allocations: 0 / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002793/0.3877, allocations: 121.5 kB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3877, allocations: 13.97 kB / 1.062 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3878, allocations: 4.125 kB / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.3878, allocations: 0 / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.3879, allocations: 20.17 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3879, allocations: 4 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.356e-05/0.388, allocations: 7.938 kB / 1.062 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.388, allocations: 11.98 kB / 1.062 GB, free: 1.184 MB / 0.8106 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.3881, allocations: 121.7 kB / 1.062 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.3882, allocations: 11.91 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002855/0.3884, allocations: 118 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3885, allocations: 0 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3885, allocations: 256 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3885, allocations: 0 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004757/0.389, allocations: 378.4 kB / 1.062 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.389, allocations: 3.984 kB / 1.062 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-05/0.389, allocations: 8 kB / 1.062 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.389, allocations: 7.938 kB / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.3891, allocations: 7.984 kB / 1.062 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.3891, allocations: 480 / 1.062 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3891, allocations: 0 / 1.062 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.3894, allocations: 207.5 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.471e-05/0.3894, allocations: 88.94 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.3895, allocations: 4 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.28e-05/0.3896, allocations: 15.98 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.3896, allocations: 0 / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3896, allocations: 4 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.623e-05/0.3897, allocations: 87.27 kB / 1.063 GB, free: 36 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3897, allocations: 4 kB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002485/0.3899, allocations: 16 kB / 1.063 GB, free: 16 kB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002049/0.3902, allocations: 103.2 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002654/0.3904, allocations: 83.94 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3904, allocations: 0 / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.3906, allocations: 35.98 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.3908, allocations: 15.94 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003898/0.3912, allocations: 159 kB / 1.063 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.3915, allocations: 0.6862 MB / 1.064 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.602e-05/0.3916, allocations: 8.172 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.431e-05/0.3916, allocations: 7.438 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3916, allocations: 0 / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of Templates: time 0.003409/0.395, allocations: 0.718 MB / 1.065 GB, free: 14.14 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