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.0009845/0.0009845, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.00111/0.00111, allocations: 161 kB / 24.17 MB, free: 328 kB / 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.958/0.958, allocations: 177.1 MB / 204.6 MB, free: 5.453 MB / 186.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.961/1.961, allocations: 377.9 MB / 0.624 GB, free: 8.34 MB / 0.5886 GB " [Timeout remaining time 178] 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 3.457e-06/3.457e-06, allocations: 3.984 kB / 0.76 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.447e-05/2.792e-05, allocations: 3.734 kB / 0.76 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.00141/0.001438, allocations: 0.6923 MB / 0.7607 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.002581, allocations: 1.127 MB / 0.7618 GB, free: 4.816 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.893e-05/0.00262, allocations: 3.938 kB / 0.7618 GB, free: 4.812 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.51e-05/0.002646, allocations: 1.625 kB / 0.7618 GB, free: 4.812 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 5.977e-05/0.002705, allocations: 7 kB / 0.7618 GB, free: 4.809 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002421/0.002947, allocations: 56.56 kB / 0.7618 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 8.685e-05/0.003034, allocations: 48.19 kB / 0.7619 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 6.595e-05/0.0031, allocations: 17.97 kB / 0.7619 GB, free: 4.699 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 7.105e-05/0.003171, allocations: 21.52 kB / 0.7619 GB, free: 4.68 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 4.706e-05/0.003218, allocations: 22.16 kB / 0.7619 GB, free: 4.66 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.003233, allocations: 4.656 kB / 0.7619 GB, free: 4.656 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.096e-05/0.003294, allocations: 19.97 kB / 0.762 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 3.25e-05/0.003326, allocations: 14.98 kB / 0.762 GB, free: 4.625 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.025e-05/0.003357, allocations: 16.58 kB / 0.762 GB, free: 4.609 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.003487, allocations: 51.81 kB / 0.762 GB, free: 4.559 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.00349, allocations: 0.9375 kB / 0.762 GB, free: 4.559 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.052e-06/0.003491, allocations: 0 / 0.762 GB, free: 4.559 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.003495, allocations: 0 / 0.762 GB, free: 4.559 MB / 0.7136 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.0004248/0.00392, allocations: 270.2 kB / 0.7623 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.003954, allocations: 8.031 kB / 0.7623 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.952e-05/0.004054, allocations: 13.77 kB / 0.7623 GB, free: 4.25 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.898e-05/0.004133, allocations: 113.7 kB / 0.7624 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.004145, allocations: 8.938 kB / 0.7624 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.004155, allocations: 1.875 kB / 0.7624 GB, free: 4.105 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.827e-05/0.004253, allocations: 62.94 kB / 0.7625 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.00426, allocations: 192 / 0.7625 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-06/0.004269, allocations: 8.359 kB / 0.7625 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.004274, allocations: 2.281 kB / 0.7625 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.45e-05/0.004299, allocations: 11.88 kB / 0.7625 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002216/0.00452, allocations: 164.3 kB / 0.7627 GB, free: 3.84 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.63e-05/0.004577, allocations: 26.58 kB / 0.7627 GB, free: 3.805 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.532e-05/0.004592, allocations: 14.19 kB / 0.7627 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.004604, allocations: 0 / 0.7627 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.995e-05/0.004664, allocations: 67.52 kB / 0.7628 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 7.61e-07/0.004665, allocations: 1.25 kB / 0.7628 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 9.982e-05/0.004765, allocations: 53.62 kB / 0.7628 GB, free: 3.652 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.0048, allocations: 55.41 kB / 0.7629 GB, free: 3.586 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.407e-05/0.004854, allocations: 111.9 kB / 0.763 GB, free: 3.465 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.004868, allocations: 29.7 kB / 0.763 GB, free: 3.43 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.679e-05/0.004895, allocations: 88.03 kB / 0.7631 GB, free: 3.34 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.004913, allocations: 19.88 kB / 0.7631 GB, free: 3.32 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.908e-05/0.004942, allocations: 26.56 kB / 0.7631 GB, free: 3.289 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.718e-05/0.005009, allocations: 322.8 kB / 0.7635 GB, free: 2.965 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.224e-05/0.005021, allocations: 4.531 kB / 0.7635 GB, free: 2.961 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.885e-05/0.00505, allocations: 44.27 kB / 0.7635 GB, free: 2.902 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.613e-05/0.005096, allocations: 50.16 kB / 0.7636 GB, free: 2.84 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.005098, allocations: 5.219 kB / 0.7636 GB, free: 2.836 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 6.932e-05/0.005167, allocations: 69.55 kB / 0.7636 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.005177, allocations: 5.5 kB / 0.7636 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.005181, allocations: 4 kB / 0.7636 GB, free: 2.754 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.005193, allocations: 3.938 kB / 0.7636 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.341e-05/0.005256, allocations: 16.61 kB / 0.7637 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.00526, allocations: 0 / 0.7637 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.519e-05/0.005285, allocations: 16.86 kB / 0.7637 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.00529, allocations: 4 kB / 0.7637 GB, free: 2.715 MB / 0.7136 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.558e-05/0.005346, allocations: 116.4 kB / 0.7638 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-06/0.005355, allocations: 8.641 kB / 0.7638 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.057e-05/0.005426, allocations: 62.11 kB / 0.7639 GB, free: 2.52 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.005428, allocations: 5.219 kB / 0.7639 GB, free: 2.516 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.005429, allocations: 0 / 0.7639 GB, free: 2.516 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.005432, allocations: 0 / 0.7639 GB, free: 2.516 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.005576, allocations: 227 kB / 0.7641 GB, free: 2.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.005577, allocations: 2.438 kB / 0.7641 GB, free: 2.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.091e-05/0.005597, allocations: 4 kB / 0.7641 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.005599, allocations: 0 / 0.7641 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.005606, allocations: 7.938 kB / 0.7641 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.005607, allocations: 0 / 0.7641 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.005608, allocations: 0 / 0.7641 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.922e-05/0.005677, allocations: 158.4 kB / 0.7642 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-06/0.005681, allocations: 0 / 0.7642 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.005695, allocations: 7.938 kB / 0.7642 GB, free: 2.082 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.846e-05/0.005733, allocations: 7.984 kB / 0.7643 GB, free: 2.074 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.24e-05/0.005756, allocations: 3.984 kB / 0.7643 GB, free: 2.07 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.005763, allocations: 4 kB / 0.7643 GB, free: 2.066 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.132e-05/0.005775, allocations: 12.86 kB / 0.7643 GB, free: 2.051 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.005775, allocations: 0 / 0.7643 GB, free: 2.051 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001331/0.005908, allocations: 12.59 kB / 0.7643 GB, free: 2.039 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 9.795e-05/0.006006, allocations: 81.78 kB / 0.7644 GB, free: 1.953 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.99e-05/0.006076, allocations: 52.02 kB / 0.7644 GB, free: 1.902 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.006077, allocations: 0 / 0.7644 GB, free: 1.902 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.445e-05/0.006102, allocations: 16.8 kB / 0.7644 GB, free: 1.883 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001282/0.00623, allocations: 17.7 kB / 0.7644 GB, free: 1.867 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003337/0.006564, allocations: 144.3 kB / 0.7646 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.362e-05/0.006598, allocations: 66.38 kB / 0.7646 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.839e-05/0.006616, allocations: 0 / 0.7646 GB, free: 1.617 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.353e-05/0.006659, allocations: 63.31 kB / 0.7647 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of SimCode: time 2.91e-07/0.00666, allocations: 0 / 0.7647 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of Templates: time 0.002241/0.008901, allocations: 0.9069 MB / 0.7656 GB, free: 0.6992 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 -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","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.114649700000882]