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.00115/0.00115, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001791/0.002941, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009191/0.0009191, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001076/0.001995, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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.963/0.963, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09095/1.054, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.976/1.976, allocations: 378.2 MB / 0.6076 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5433/2.519, allocations: 123.3 MB / 0.728 GB, free: 5.816 MB / 0.698 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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 1.914e-06/1.914e-06, allocations: 0 / 0.7293 GB, free: 4.555 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.992e-05/2.183e-05, allocations: 8.391 kB / 0.7293 GB, free: 4.547 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001585/0.001607, allocations: 0.7172 MB / 0.73 GB, free: 3.848 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.00128/0.002887, allocations: 1.137 MB / 0.7311 GB, free: 2.707 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.002927, allocations: 0 / 0.7311 GB, free: 2.707 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.33e-05/0.00295, allocations: 3.938 kB / 0.7311 GB, free: 2.703 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.382e-05/0.002994, allocations: 11.03 kB / 0.7311 GB, free: 2.695 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.003178, allocations: 48.31 kB / 0.7312 GB, free: 2.648 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.003281, allocations: 45.56 kB / 0.7312 GB, free: 2.613 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.135e-05/0.003363, allocations: 14.27 kB / 0.7312 GB, free: 2.602 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.851e-05/0.003461, allocations: 38.05 kB / 0.7313 GB, free: 2.566 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.824e-05/0.003519, allocations: 17.5 kB / 0.7313 GB, free: 2.551 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.003537, allocations: 4 kB / 0.7313 GB, free: 2.547 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.059e-05/0.003627, allocations: 25.38 kB / 0.7313 GB, free: 2.523 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.928e-05/0.003647, allocations: 6.094 kB / 0.7313 GB, free: 2.52 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.003674, allocations: 14.52 kB / 0.7313 GB, free: 2.508 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.003813, allocations: 49.42 kB / 0.7314 GB, free: 2.461 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.818e-05/0.003831, allocations: 0.6562 kB / 0.7314 GB, free: 2.461 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.984e-06/0.003833, allocations: 4 kB / 0.7314 GB, free: 2.457 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.823e-05/0.003852, allocations: 0.9375 kB / 0.7314 GB, free: 2.457 MB / 0.698 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.0004979/0.004349, allocations: 269 kB / 0.7316 GB, free: 2.168 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.004386, allocations: 12.91 kB / 0.7317 GB, free: 2.156 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.004524, allocations: 97.95 kB / 0.7318 GB, free: 2.043 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.184e-05/0.004616, allocations: 107.2 kB / 0.7319 GB, free: 1.914 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.004628, allocations: 384 / 0.7319 GB, free: 1.914 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.004639, allocations: 4.375 kB / 0.7319 GB, free: 1.91 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.004769, allocations: 70.86 kB / 0.7319 GB, free: 1.832 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.004776, allocations: 0.8438 kB / 0.7319 GB, free: 1.832 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-06/0.004783, allocations: 384 / 0.7319 GB, free: 1.832 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.004788, allocations: 1.062 kB / 0.7319 GB, free: 1.832 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.304e-05/0.004821, allocations: 19.92 kB / 0.732 GB, free: 1.812 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002847/0.005106, allocations: 166 kB / 0.7321 GB, free: 1.637 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.365e-05/0.005179, allocations: 30.64 kB / 0.7321 GB, free: 1.598 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.425e-05/0.005204, allocations: 24.91 kB / 0.7322 GB, free: 1.57 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.005224, allocations: 0.8125 kB / 0.7322 GB, free: 1.57 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.57e-05/0.005309, allocations: 51.39 kB / 0.7322 GB, free: 1.508 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.00531, allocations: 0.5 kB / 0.7322 GB, free: 1.508 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0001294/0.00544, allocations: 66.09 kB / 0.7323 GB, free: 1.438 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.005486, allocations: 60.58 kB / 0.7323 GB, free: 1.367 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.732e-05/0.005553, allocations: 110.7 kB / 0.7324 GB, free: 1.246 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.005566, allocations: 25.7 kB / 0.7325 GB, free: 1.215 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.026e-05/0.005606, allocations: 92.06 kB / 0.7326 GB, free: 1.121 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.782e-05/0.005634, allocations: 24.72 kB / 0.7326 GB, free: 1.098 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.005675, allocations: 21.7 kB / 0.7326 GB, free: 1.07 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.128e-05/0.005767, allocations: 323.4 kB / 0.7329 GB, free: 0.7461 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.603e-05/0.005783, allocations: 4 kB / 0.7329 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.739e-05/0.00582, allocations: 36.97 kB / 0.7329 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.894e-05/0.005889, allocations: 57.95 kB / 0.733 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.005891, allocations: 0 / 0.733 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001106/0.006002, allocations: 75.14 kB / 0.7331 GB, free: 0.543 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.006017, allocations: 10.02 kB / 0.7331 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.006023, allocations: 0.5312 kB / 0.7331 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.006034, allocations: 9.062 kB / 0.7331 GB, free: 0.5273 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.66e-05/0.006121, allocations: 15.94 kB / 0.7331 GB, free: 0.5117 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.00613, allocations: 7.984 kB / 0.7331 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.621e-05/0.006166, allocations: 8.719 kB / 0.7331 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.006174, allocations: 0 / 0.7331 GB, free: 0.4961 MB / 0.698 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.425e-05/0.006249, allocations: 118.3 kB / 0.7332 GB, free: 380 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.00626, allocations: 9.016 kB / 0.7332 GB, free: 372 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.823e-05/0.006359, allocations: 58.06 kB / 0.7333 GB, free: 304 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.006361, allocations: 4.5 kB / 0.7333 GB, free: 300 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.006363, allocations: 0 / 0.7333 GB, free: 300 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.006369, allocations: 9.766 kB / 0.7333 GB, free: 292 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002038/0.006573, allocations: 202.8 kB / 0.7335 GB, free: 64 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.006575, allocations: 0 / 0.7335 GB, free: 64 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.291e-05/0.006618, allocations: 8 kB / 0.7335 GB, free: 56 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.629e-06/0.006627, allocations: 11.91 kB / 0.7335 GB, free: 44 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.00663, allocations: 1.219 kB / 0.7335 GB, free: 44 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.006638, allocations: 11.94 kB / 0.7335 GB, free: 32 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.00664, allocations: 0 / 0.7335 GB, free: 32 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.006641, allocations: 1.562 kB / 0.7335 GB, free: 32 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.006759, allocations: 147.5 kB / 0.7337 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.006778, allocations: 3.938 kB / 0.7337 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.571e-05/0.006844, allocations: 4 kB / 0.7337 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.126e-05/0.006875, allocations: 12.73 kB / 0.7337 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.006886, allocations: 0.75 kB / 0.7337 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.779e-05/0.006904, allocations: 12.86 kB / 0.7337 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.006904, allocations: 0.6562 kB / 0.7337 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002417/0.007146, allocations: 15.98 kB / 0.7337 GB, free: 15.82 MB / 0.7136 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.0001254/0.007271, allocations: 94.09 kB / 0.7338 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.728e-05/0.007358, allocations: 32.97 kB / 0.7338 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.007363, allocations: 1.188 kB / 0.7338 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.406e-05/0.007397, allocations: 20.84 kB / 0.7339 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.007648, allocations: 16.5 kB / 0.7339 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006483/0.008297, allocations: 154.2 kB / 0.734 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.018e-05/0.008327, allocations: 56.33 kB / 0.7341 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.401e-05/0.008351, allocations: 5.25 kB / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.703e-05/0.008398, allocations: 59.36 kB / 0.7341 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of SimCode: time 1.753e-06/0.0084, allocations: 0 / 0.7341 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of Templates: time 0.002438/0.01084, allocations: 0.9229 MB / 0.735 GB, free: 14.46 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.ref.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: 4.973320261575282]