Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001092/0.001092, allocations: 76.55 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.001293/0.001293, allocations: 177.9 kB / 23.22 MB, free: 1.332 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.8937/0.8937, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.75/1.75, allocations: 377.8 MB / 0.6228 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.457e-06/3.457e-06, allocations: 0 / 0.9822 GB, free: 2.117 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.108e-05/4.453e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.113 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001792/0.001837, allocations: 0.674 MB / 0.9828 GB, free: 1.441 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001337/0.003174, allocations: 1.088 MB / 0.9839 GB, free: 348 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.625e-05/0.00322, allocations: 3.938 kB / 0.9839 GB, free: 344 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.086e-05/0.003251, allocations: 0 / 0.9839 GB, free: 344 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.862e-05/0.003319, allocations: 7.875 kB / 0.9839 GB, free: 336 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.003621, allocations: 47.77 kB / 0.984 GB, free: 288 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.003727, allocations: 55.78 kB / 0.984 GB, free: 232 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.003829, allocations: 15.97 kB / 0.984 GB, free: 216 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 8.584e-05/0.003915, allocations: 27.98 kB / 0.9841 GB, free: 188 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 5.559e-05/0.003971, allocations: 19.91 kB / 0.9841 GB, free: 168 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.003988, allocations: 4 kB / 0.9841 GB, free: 164 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.496e-05/0.004053, allocations: 23.92 kB / 0.9841 GB, free: 140 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.417e-05/0.004077, allocations: 7.984 kB / 0.9841 GB, free: 132 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.1e-05/0.004108, allocations: 15.98 kB / 0.9841 GB, free: 116 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.004257, allocations: 71.75 kB / 0.9842 GB, free: 44 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.004259, allocations: 0 / 0.9842 GB, free: 44 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.152e-06/0.00426, allocations: 0 / 0.9842 GB, free: 44 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.004265, allocations: 0 / 0.9842 GB, free: 44 kB / 0.9323 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.0005218/0.004786, allocations: 298.3 kB / 0.9845 GB, free: 15.71 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.004827, allocations: 11.97 kB / 0.9845 GB, free: 15.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.999e-05/0.004917, allocations: 8.875 kB / 0.9845 GB, free: 15.7 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.005042, allocations: 113.7 kB / 0.9846 GB, free: 15.56 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.005059, allocations: 12.31 kB / 0.9846 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.00507, allocations: 384 / 0.9846 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.005244, allocations: 66.22 kB / 0.9847 GB, free: 15.48 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.005254, allocations: 4.188 kB / 0.9847 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.005264, allocations: 384 / 0.9847 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.005269, allocations: 384 / 0.9847 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.0054, allocations: 47.89 kB / 0.9847 GB, free: 15.43 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003743/0.005774, allocations: 224.4 kB / 0.9849 GB, free: 15.18 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.005911, allocations: 50.55 kB / 0.985 GB, free: 15.12 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.039e-05/0.005981, allocations: 32.95 kB / 0.985 GB, free: 15.08 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.006003, allocations: 8 kB / 0.985 GB, free: 15.07 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001535/0.006156, allocations: 79.31 kB / 0.9851 GB, free: 14.98 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.006157, allocations: 3.938 kB / 0.9851 GB, free: 14.98 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0003265/0.006484, allocations: 121.6 kB / 0.9852 GB, free: 14.86 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.006523, allocations: 51.41 kB / 0.9853 GB, free: 14.79 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.729e-05/0.00659, allocations: 105.8 kB / 0.9854 GB, free: 14.68 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.006603, allocations: 25.7 kB / 0.9854 GB, free: 14.65 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.339e-05/0.006647, allocations: 96.14 kB / 0.9855 GB, free: 14.55 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.006669, allocations: 19.84 kB / 0.9855 GB, free: 14.53 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.912e-05/0.006708, allocations: 21.72 kB / 0.9855 GB, free: 14.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.943e-05/0.006798, allocations: 322.8 kB / 0.9858 GB, free: 14.18 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.102e-05/0.006869, allocations: 19.98 kB / 0.9859 GB, free: 14.16 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.503e-05/0.006954, allocations: 64.2 kB / 0.9859 GB, free: 14.08 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.007108, allocations: 96.19 kB / 0.986 GB, free: 13.97 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.00711, allocations: 0 / 0.986 GB, free: 13.97 MB / 0.948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001992/0.007309, allocations: 109.5 kB / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.007327, allocations: 18.84 kB / 0.9861 GB, free: 13.84 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.007333, allocations: 0 / 0.9861 GB, free: 13.84 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.007345, allocations: 4.125 kB / 0.9861 GB, free: 13.84 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.497e-05/0.00743, allocations: 23.98 kB / 0.9862 GB, free: 13.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.007436, allocations: 320 / 0.9862 GB, free: 13.82 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.615e-05/0.007482, allocations: 7.984 kB / 0.9862 GB, free: 13.81 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-05/0.007575, allocations: 4 kB / 0.9862 GB, free: 13.8 MB / 0.948 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 7.195e-05/0.007647, allocations: 121.9 kB / 0.9863 GB, free: 13.68 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.2e-05/0.007659, allocations: 7.938 kB / 0.9863 GB, free: 13.67 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000208/0.007867, allocations: 114.1 kB / 0.9864 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.00787, allocations: 7.938 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.007874, allocations: 4.25 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.00788, allocations: 3.984 kB / 0.9864 GB, free: 13.54 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003121/0.008192, allocations: 310 kB / 0.9867 GB, free: 13.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.008194, allocations: 0 / 0.9867 GB, free: 13.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.026e-05/0.008235, allocations: 11.98 kB / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.008237, allocations: 0 / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.008245, allocations: 0 / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.008247, allocations: 4 kB / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.008247, allocations: 0 / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.008442, allocations: 199.4 kB / 0.9869 GB, free: 12.97 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.905e-06/0.00845, allocations: 3.953 kB / 0.9869 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/0.008465, allocations: 0 / 0.9869 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.77e-05/0.008533, allocations: 11.98 kB / 0.9869 GB, free: 12.95 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.781e-05/0.008571, allocations: 11.92 kB / 0.9869 GB, free: 12.94 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.008583, allocations: 4 kB / 0.9869 GB, free: 12.94 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.318e-05/0.008616, allocations: 83.27 kB / 0.987 GB, free: 12.86 MB / 0.948 GB Notification: Performance of sort global known variables: time 8.1e-08/0.008616, allocations: 4 kB / 0.987 GB, free: 12.85 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002465/0.008862, allocations: 16 kB / 0.987 GB, free: 12.84 MB / 0.948 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.0001287/0.008991, allocations: 111.2 kB / 0.9872 GB, free: 12.72 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000192/0.009183, allocations: 71.88 kB / 0.9872 GB, free: 12.65 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.009185, allocations: 0 / 0.9872 GB, free: 12.65 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.34e-05/0.009258, allocations: 24.23 kB / 0.9872 GB, free: 12.62 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.009507, allocations: 23.91 kB / 0.9873 GB, free: 12.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003111/0.009818, allocations: 154.6 kB / 0.9874 GB, free: 12.42 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.335e-05/0.009872, allocations: 75.33 kB / 0.9875 GB, free: 12.32 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.0099, allocations: 12.5 kB / 0.9875 GB, free: 12.31 MB / 0.948 GB Notification: Performance of SimCode: time 7.22e-07/0.0099, allocations: 0 / 0.9875 GB, free: 12.31 MB / 0.948 GB Notification: Performance of Templates: time 0.002102/0.012, allocations: 0.9228 MB / 0.9884 GB, free: 11.39 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.785845086909831]