Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001003/0.001003, allocations: 80.3 kB / 21.47 MB, free: 3.031 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.001058/0.001058, allocations: 167 kB / 24.86 MB, free: 9.289 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.9299/0.9299, allocations: 177.1 MB / 205.3 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.86/1.86, allocations: 359 MB / 0.6063 GB, free: 10.9 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.216e-06/3.216e-06, allocations: 0 / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.4e-05/3.722e-05, allocations: 5.781 kB / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002298/0.002335, allocations: 0.6875 MB / 0.789 GB, free: 11.59 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.00161/0.003945, allocations: 1.118 MB / 0.7901 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.196e-05/0.004007, allocations: 0 / 0.7901 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.445e-05/0.004041, allocations: 3.938 kB / 0.7901 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.75e-05/0.004129, allocations: 17.47 kB / 0.7901 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.004476, allocations: 47.77 kB / 0.7901 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.004592, allocations: 47.8 kB / 0.7902 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.004699, allocations: 11.98 kB / 0.7902 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.004803, allocations: 29.14 kB / 0.7902 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.066e-05/0.004864, allocations: 19.95 kB / 0.7902 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.004883, allocations: 4 kB / 0.7902 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.626e-05/0.004959, allocations: 24.61 kB / 0.7902 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.818e-05/0.004987, allocations: 9.344 kB / 0.7903 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.397e-05/0.005021, allocations: 19.97 kB / 0.7903 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.00517, allocations: 47.81 kB / 0.7903 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.005175, allocations: 4 kB / 0.7903 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.193e-06/0.005176, allocations: 0.8438 kB / 0.7903 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.005181, allocations: 0 / 0.7903 GB, free: 10.19 MB / 0.7448 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.0005497/0.005731, allocations: 389.7 kB / 0.7907 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.005774, allocations: 8.031 kB / 0.7907 GB, free: 9.762 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.005898, allocations: 21.73 kB / 0.7907 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.006, allocations: 112.5 kB / 0.7908 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.006015, allocations: 5.031 kB / 0.7908 GB, free: 9.602 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.006026, allocations: 4.375 kB / 0.7908 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.006173, allocations: 63.75 kB / 0.7909 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.006181, allocations: 192 / 0.7909 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.006191, allocations: 3.781 kB / 0.7909 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.006197, allocations: 384 / 0.7909 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.8e-05/0.006235, allocations: 15.92 kB / 0.7909 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003911/0.006626, allocations: 260.3 kB / 0.7912 GB, free: 9.23 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.6e-05/0.006722, allocations: 43.11 kB / 0.7912 GB, free: 9.176 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.549e-05/0.006747, allocations: 19.61 kB / 0.7912 GB, free: 9.152 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.006765, allocations: 128 / 0.7912 GB, free: 9.152 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001024/0.006867, allocations: 61.05 kB / 0.7913 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.006869, allocations: 0.7188 kB / 0.7913 GB, free: 9.078 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0002048/0.007073, allocations: 79.2 kB / 0.7914 GB, free: 8.996 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.007118, allocations: 51.41 kB / 0.7914 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.531e-05/0.007213, allocations: 169.9 kB / 0.7916 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.00723, allocations: 25.7 kB / 0.7916 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.00035/0.00758, allocations: 138.8 kB / 0.7917 GB, free: 8.578 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.00761, allocations: 21.19 kB / 0.7918 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.007659, allocations: 27.36 kB / 0.7918 GB, free: 8.523 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.007805, allocations: 0.4923 MB / 0.7923 GB, free: 8.02 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.396e-05/0.007829, allocations: 5.594 kB / 0.7923 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.007881, allocations: 54.36 kB / 0.7923 GB, free: 7.941 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.318e-05/0.007965, allocations: 71.84 kB / 0.7924 GB, free: 7.852 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.00797, allocations: 4 kB / 0.7924 GB, free: 7.848 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00014/0.00811, allocations: 78.61 kB / 0.7925 GB, free: 7.766 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.008127, allocations: 11.98 kB / 0.7925 GB, free: 7.754 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.008135, allocations: 4.469 kB / 0.7925 GB, free: 7.75 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.008148, allocations: 4.781 kB / 0.7925 GB, free: 7.746 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.55e-05/0.008244, allocations: 8 kB / 0.7925 GB, free: 7.738 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.008251, allocations: 8.938 kB / 0.7925 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.909e-05/0.0083, allocations: 11.98 kB / 0.7925 GB, free: 7.719 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.008309, allocations: 0.75 kB / 0.7925 GB, free: 7.719 MB / 0.7448 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.0001037/0.008412, allocations: 166.6 kB / 0.7927 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.008431, allocations: 7.953 kB / 0.7927 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.008573, allocations: 75.73 kB / 0.7928 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.008576, allocations: 0 / 0.7928 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.008579, allocations: 4 kB / 0.7928 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.008582, allocations: 0 / 0.7928 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.008872, allocations: 307.2 kB / 0.793 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.008875, allocations: 0 / 0.793 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.374e-05/0.008928, allocations: 15.98 kB / 0.7931 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.008933, allocations: 4.781 kB / 0.7931 GB, free: 7.109 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.00894, allocations: 0 / 0.7931 GB, free: 7.109 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.008942, allocations: 4.469 kB / 0.7931 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.008943, allocations: 1.438 kB / 0.7931 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.009103, allocations: 215.8 kB / 0.7933 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.23e-05/0.009115, allocations: 7.984 kB / 0.7933 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.009135, allocations: 7.938 kB / 0.7933 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-05/0.009214, allocations: 4.5 kB / 0.7933 GB, free: 6.855 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.009247, allocations: 9.297 kB / 0.7933 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.009259, allocations: 0 / 0.7933 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.9e-05/0.009308, allocations: 127.2 kB / 0.7934 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.009308, allocations: 0 / 0.7934 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002986/0.009606, allocations: 16.97 kB / 0.7934 GB, free: 6.707 MB / 0.7448 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.0001548/0.009761, allocations: 105.6 kB / 0.7935 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001131/0.009874, allocations: 43.78 kB / 0.7936 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009876, allocations: 0 / 0.7936 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.269e-05/0.009918, allocations: 27.61 kB / 0.7936 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.01022, allocations: 17.08 kB / 0.7936 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005134/0.01074, allocations: 158 kB / 0.7938 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.563e-05/0.01078, allocations: 59.34 kB / 0.7938 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.377e-05/0.01082, allocations: 4 kB / 0.7938 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.825e-05/0.01089, allocations: 74.2 kB / 0.7939 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of SimCode: time 7.01e-07/0.01089, allocations: 0.8438 kB / 0.7939 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of Templates: time 0.003615/0.0145, allocations: 0.9816 MB / 0.7949 GB, free: 5.219 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.126066066790372]