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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008386/0.0008386, allocations: 76.5 kB / 19.93 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008081/0.0008081, allocations: 177.9 kB / 23.21 MB, free: 1.34 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8681/0.8681, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.77/1.77, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.295e-06/2.295e-06, allocations: 0 / 1.001 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.547e-05, allocations: 6.281 kB / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001193/0.001219, allocations: 0.6623 MB / 1.002 GB, free: 12.36 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009651/0.002184, allocations: 1.089 MB / 1.003 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.614e-05/0.00222, allocations: 4 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.486e-05/0.002245, allocations: 7.875 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.605e-05/0.002301, allocations: 15.86 kB / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.002544, allocations: 47.81 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 8.044e-05/0.002625, allocations: 47.8 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.082e-05/0.002706, allocations: 15.92 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 6.771e-05/0.002773, allocations: 23.97 kB / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.03e-05/0.002814, allocations: 19.97 kB / 1.003 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.439e-05/0.002828, allocations: 4 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.142e-05/0.00288, allocations: 23.88 kB / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.952e-05/0.002899, allocations: 19.97 kB / 1.003 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.474e-05/0.002924, allocations: 11.98 kB / 1.003 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.003044, allocations: 71.77 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.003046, allocations: 0 / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.192e-06/0.003048, allocations: 0 / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.246e-06/0.003051, allocations: 0 / 1.003 GB, free: 10.95 MB / 0.9636 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.000416/0.003467, allocations: 290.2 kB / 1.003 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.003501, allocations: 9.344 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.613e-05/0.003567, allocations: 8.891 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.29e-05/0.00364, allocations: 117.8 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.003651, allocations: 4.312 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.003662, allocations: 8.375 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.003798, allocations: 66.22 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.003806, allocations: 4.125 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.003816, allocations: 384 / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.00382, allocations: 384 / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.865e-05/0.003919, allocations: 43.89 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003054/0.004224, allocations: 224.5 kB / 1.004 GB, free: 10.1 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001037/0.004328, allocations: 58.48 kB / 1.004 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.042e-05/0.004378, allocations: 24.97 kB / 1.004 GB, free: 10 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.004396, allocations: 0 / 1.004 GB, free: 10 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/0.004523, allocations: 83.31 kB / 1.004 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.844e-06/0.004525, allocations: 3.984 kB / 1.004 GB, free: 9.906 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002556/0.004781, allocations: 133.6 kB / 1.004 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.004816, allocations: 59.41 kB / 1.004 GB, free: 9.699 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.615e-05/0.004872, allocations: 105.8 kB / 1.004 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/0.004883, allocations: 25.7 kB / 1.004 GB, free: 9.555 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.004913, allocations: 84.09 kB / 1.004 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.004932, allocations: 19.89 kB / 1.004 GB, free: 9.449 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.004964, allocations: 25.72 kB / 1.004 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.397e-05/0.005038, allocations: 314.8 kB / 1.005 GB, free: 9.102 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.42e-05/0.005092, allocations: 31.98 kB / 1.005 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.513e-05/0.005157, allocations: 60.2 kB / 1.005 GB, free: 8.996 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.005276, allocations: 92.19 kB / 1.005 GB, free: 8.891 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.005278, allocations: 0 / 1.005 GB, free: 8.891 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000152/0.00543, allocations: 121.5 kB / 1.005 GB, free: 8.766 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.005443, allocations: 9.812 kB / 1.005 GB, free: 8.758 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.005447, allocations: 0 / 1.005 GB, free: 8.758 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.005459, allocations: 4 kB / 1.005 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.004e-05/0.005529, allocations: 19.92 kB / 1.005 GB, free: 8.734 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.005534, allocations: 4 kB / 1.005 GB, free: 8.73 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.377e-05/0.005568, allocations: 11.98 kB / 1.005 GB, free: 8.719 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.005576, allocations: 8.125 kB / 1.005 GB, free: 8.711 MB / 0.9636 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 5.952e-05/0.005635, allocations: 117.8 kB / 1.005 GB, free: 8.586 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.545e-06/0.005643, allocations: 7.891 kB / 1.005 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.005804, allocations: 114.2 kB / 1.005 GB, free: 8.461 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.005806, allocations: 0 / 1.005 GB, free: 8.461 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.00581, allocations: 4 kB / 1.005 GB, free: 8.457 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.005814, allocations: 0 / 1.005 GB, free: 8.457 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.006063, allocations: 306.1 kB / 1.005 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.006065, allocations: 0 / 1.005 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.224e-05/0.006097, allocations: 15.92 kB / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.006099, allocations: 0 / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.006105, allocations: 4 kB / 1.005 GB, free: 8.102 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.006106, allocations: 0 / 1.005 GB, free: 8.102 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.006107, allocations: 0 / 1.005 GB, free: 8.102 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001495/0.006256, allocations: 199.4 kB / 1.006 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-06/0.006263, allocations: 8 kB / 1.006 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.006275, allocations: 7.984 kB / 1.006 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.727e-05/0.006323, allocations: 4 kB / 1.006 GB, free: 7.871 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.991e-05/0.006352, allocations: 7.984 kB / 1.006 GB, free: 7.863 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.006363, allocations: 0 / 1.006 GB, free: 7.863 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.749e-05/0.006391, allocations: 91.27 kB / 1.006 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.006391, allocations: 0 / 1.006 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001659/0.006557, allocations: 16 kB / 1.006 GB, free: 7.758 MB / 0.9636 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.0001083/0.006665, allocations: 103.1 kB / 1.006 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001516/0.006817, allocations: 75.88 kB / 1.006 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.006818, allocations: 0 / 1.006 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.728e-05/0.006875, allocations: 27.98 kB / 1.006 GB, free: 7.543 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.007067, allocations: 16.05 kB / 1.006 GB, free: 7.527 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002634/0.007331, allocations: 162.6 kB / 1.006 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.411e-05/0.007375, allocations: 77.83 kB / 1.006 GB, free: 7.242 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.274e-05/0.007398, allocations: 12.5 kB / 1.006 GB, free: 7.23 MB / 0.9636 GB Notification: Performance of SimCode: time 2.6e-07/0.007398, allocations: 0 / 1.006 GB, free: 7.23 MB / 0.9636 GB Notification: Performance of Templates: time 0.001726/0.009124, allocations: 0.9263 MB / 1.007 GB, free: 6.305 MB / 0.9636 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: 6.523033119738102]