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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 112.7 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002142/0.002142, allocations: 190.4 kB / 22.22 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.33/3.33, allocations: 0.4893 GB / 0.7884 GB, free: 33.2 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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=2500,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=2500,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 72.95 kB / 1.145 GB, free: 30.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.3777, allocations: 174.9 MB / 1.316 GB, free: 9.73 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002458/0.3802, allocations: 0.688 MB / 1.317 GB, free: 9.047 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001647/0.3818, allocations: 1.073 MB / 1.318 GB, free: 7.961 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.703e-05/0.3819, allocations: 0 / 1.318 GB, free: 7.961 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.603e-05/0.3819, allocations: 3.938 kB / 1.318 GB, free: 7.957 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.948e-05/0.382, allocations: 7.938 kB / 1.318 GB, free: 7.949 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003278/0.3823, allocations: 43.83 kB / 1.318 GB, free: 7.906 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001331/0.3824, allocations: 51.84 kB / 1.318 GB, free: 7.855 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3825, allocations: 8 kB / 1.318 GB, free: 7.848 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.227e-05/0.3826, allocations: 23.92 kB / 1.318 GB, free: 7.824 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.758e-05/0.3827, allocations: 27.89 kB / 1.318 GB, free: 7.797 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.3827, allocations: 11.94 kB / 1.318 GB, free: 7.785 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.373e-05/0.3828, allocations: 16 kB / 1.318 GB, free: 7.77 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.64e-05/0.3828, allocations: 11.98 kB / 1.318 GB, free: 7.758 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.507e-05/0.3829, allocations: 23.86 kB / 1.318 GB, free: 7.734 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.383, allocations: 59.78 kB / 1.318 GB, free: 7.676 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.383, allocations: 0 / 1.318 GB, free: 7.676 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.364e-06/0.383, allocations: 0 / 1.318 GB, free: 7.676 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.3831, allocations: 0 / 1.318 GB, free: 7.676 MB / 1.014 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.3838, allocations: 298.1 kB / 1.318 GB, free: 7.352 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3838, allocations: 16.02 kB / 1.318 GB, free: 7.336 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.382e-05/0.3839, allocations: 4.891 kB / 1.318 GB, free: 7.332 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.384, allocations: 106.5 kB / 1.318 GB, free: 7.203 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.384, allocations: 4.375 kB / 1.318 GB, free: 7.199 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.384, allocations: 4.312 kB / 1.318 GB, free: 7.195 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.3842, allocations: 66.22 kB / 1.318 GB, free: 7.125 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3843, allocations: 192 / 1.318 GB, free: 7.125 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.3843, allocations: 11.94 kB / 1.318 GB, free: 7.113 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.3843, allocations: 0 / 1.318 GB, free: 7.113 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.3845, allocations: 39.95 kB / 1.319 GB, free: 7.074 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005147/0.385, allocations: 259.8 kB / 1.319 GB, free: 6.777 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.3852, allocations: 58.42 kB / 1.319 GB, free: 6.711 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.951e-05/0.3853, allocations: 36.97 kB / 1.319 GB, free: 6.672 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.3853, allocations: 0 / 1.319 GB, free: 6.672 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002071/0.3855, allocations: 79.31 kB / 1.319 GB, free: 6.582 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.3855, allocations: 0 / 1.319 GB, free: 6.582 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0004217/0.3859, allocations: 129.6 kB / 1.319 GB, free: 6.449 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.386, allocations: 51.41 kB / 1.319 GB, free: 6.387 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.3861, allocations: 105.8 kB / 1.319 GB, free: 6.273 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.517e-05/0.3861, allocations: 29.7 kB / 1.319 GB, free: 6.238 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.239e-05/0.3862, allocations: 88.09 kB / 1.319 GB, free: 6.148 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.3862, allocations: 15.89 kB / 1.319 GB, free: 6.133 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.3863, allocations: 21.72 kB / 1.319 GB, free: 6.105 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.3864, allocations: 322.8 kB / 1.32 GB, free: 5.781 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.455e-05/0.3865, allocations: 23.98 kB / 1.32 GB, free: 5.758 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.3867, allocations: 60.27 kB / 1.32 GB, free: 5.684 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.3869, allocations: 96.12 kB / 1.32 GB, free: 5.574 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3869, allocations: 0 / 1.32 GB, free: 5.574 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002907/0.3872, allocations: 121.5 kB / 1.32 GB, free: 5.449 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.3872, allocations: 8.125 kB / 1.32 GB, free: 5.441 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.3872, allocations: 4 kB / 1.32 GB, free: 5.438 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3872, allocations: 4 kB / 1.32 GB, free: 5.434 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3873, allocations: 19.92 kB / 1.32 GB, free: 5.414 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.3873, allocations: 0 / 1.32 GB, free: 5.414 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.749e-05/0.3874, allocations: 11.92 kB / 1.32 GB, free: 5.402 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.3874, allocations: 7.938 kB / 1.32 GB, free: 5.395 MB / 1.014 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.000116/0.3875, allocations: 118.7 kB / 1.32 GB, free: 5.27 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.3875, allocations: 7.953 kB / 1.32 GB, free: 5.262 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002913/0.3878, allocations: 113.9 kB / 1.32 GB, free: 5.141 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.3878, allocations: 4 kB / 1.32 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3878, allocations: 0 / 1.32 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3878, allocations: 0 / 1.32 GB, free: 5.137 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004819/0.3883, allocations: 329.6 kB / 1.321 GB, free: 4.766 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3883, allocations: 0 / 1.321 GB, free: 4.766 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.395e-05/0.3884, allocations: 19.92 kB / 1.321 GB, free: 4.746 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3884, allocations: 0 / 1.321 GB, free: 4.746 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.3884, allocations: 0 / 1.321 GB, free: 4.746 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.3884, allocations: 4 kB / 1.321 GB, free: 4.742 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3884, allocations: 256 / 1.321 GB, free: 4.742 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.3887, allocations: 199.9 kB / 1.321 GB, free: 4.531 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-06/0.3887, allocations: 4.188 kB / 1.321 GB, free: 4.527 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.3887, allocations: 4 kB / 1.321 GB, free: 4.523 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.49e-05/0.3888, allocations: 15.92 kB / 1.321 GB, free: 4.508 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.3889, allocations: 7.984 kB / 1.321 GB, free: 4.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3889, allocations: 7.938 kB / 1.321 GB, free: 4.492 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.547e-05/0.3889, allocations: 79.28 kB / 1.321 GB, free: 4.414 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3889, allocations: 0 / 1.321 GB, free: 4.414 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002383/0.3892, allocations: 19.94 kB / 1.321 GB, free: 4.395 MB / 1.014 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.0001741/0.3893, allocations: 111.7 kB / 1.321 GB, free: 4.277 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002675/0.3896, allocations: 67.89 kB / 1.321 GB, free: 4.211 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3896, allocations: 0 / 1.321 GB, free: 4.211 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.3897, allocations: 32.05 kB / 1.321 GB, free: 4.18 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.39, allocations: 8.156 kB / 1.321 GB, free: 4.172 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003608/0.3903, allocations: 150.1 kB / 1.321 GB, free: 4 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.3907, allocations: 0.6845 MB / 1.322 GB, free: 3.289 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.024e-05/0.3907, allocations: 7.984 kB / 1.322 GB, free: 3.281 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.563e-05/0.3908, allocations: 11.44 kB / 1.322 GB, free: 3.27 MB / 1.014 GB Notification: Performance of SimCode: time 3.7e-07/0.3908, allocations: 7.875 kB / 1.322 GB, free: 3.262 MB / 1.014 GB Notification: Performance of Templates: time 0.003792/0.3946, allocations: 0.8601 MB / 1.323 GB, free: 2.406 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.361547245644033]