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.0009921/0.0009921, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009752/0.0009752, allocations: 177 kB / 23.36 MB, free: 1.129 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.9097/0.9097, allocations: 177.1 MB / 203.8 MB, free: 5.484 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 2.474/2.474, allocations: 438.8 MB / 0.6827 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/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 1.382e-06/1.382e-06, allocations: 0 / 0.8386 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.286e-05/1.425e-05, allocations: 10.25 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001108/0.001122, allocations: 0.6725 MB / 0.8392 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.002143, allocations: 1.135 MB / 0.8403 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.377e-05/0.002176, allocations: 0 / 0.8403 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.28e-05/0.002199, allocations: 0 / 0.8403 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 5.624e-05/0.002255, allocations: 7.875 kB / 0.8403 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002202/0.002476, allocations: 55.69 kB / 0.8404 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 7.78e-05/0.002554, allocations: 47.86 kB / 0.8404 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 5.818e-05/0.002612, allocations: 11.98 kB / 0.8404 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 6.788e-05/0.00268, allocations: 35.91 kB / 0.8405 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.346e-05/0.002723, allocations: 15.97 kB / 0.8405 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.002736, allocations: 4 kB / 0.8405 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.314e-05/0.002789, allocations: 23.97 kB / 0.8405 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.002807, allocations: 8 kB / 0.8405 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.002827, allocations: 15.92 kB / 0.8405 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 9.714e-05/0.002924, allocations: 59.75 kB / 0.8406 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.403e-06/0.002926, allocations: 0 / 0.8406 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of FrontEnd: time 4.6e-07/0.002926, allocations: 0 / 0.8406 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.655e-06/0.002929, allocations: 0 / 0.8406 GB, free: 12.13 MB / 0.8073 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.0003035/0.003232, allocations: 268.8 kB / 0.8409 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.003261, allocations: 12.03 kB / 0.8409 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.954e-05/0.003331, allocations: 12.86 kB / 0.8409 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.362e-05/0.003395, allocations: 109.8 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.274e-06/0.003402, allocations: 384 / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.003411, allocations: 8.375 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.473e-05/0.003495, allocations: 62.92 kB / 0.8411 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-06/0.003501, allocations: 4.125 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.003509, allocations: 4.375 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-06/0.003512, allocations: 8.375 kB / 0.8411 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.187e-05/0.003533, allocations: 7.938 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002112/0.003745, allocations: 168.2 kB / 0.8412 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.195e-05/0.003797, allocations: 26.58 kB / 0.8413 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.986e-05/0.003816, allocations: 12.84 kB / 0.8413 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.003829, allocations: 3.938 kB / 0.8413 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.012e-05/0.003889, allocations: 71.56 kB / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.00389, allocations: 0 / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 9.329e-05/0.003983, allocations: 57.62 kB / 0.8414 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.004016, allocations: 55.41 kB / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.89e-05/0.004065, allocations: 110.6 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.004078, allocations: 33.7 kB / 0.8416 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.004104, allocations: 84.08 kB / 0.8417 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.004122, allocations: 23.83 kB / 0.8417 GB, free: 10.87 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.791e-05/0.00415, allocations: 21.72 kB / 0.8417 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.569e-05/0.004215, allocations: 318.8 kB / 0.842 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.092e-05/0.004226, allocations: 4 kB / 0.842 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.994e-05/0.004256, allocations: 52.2 kB / 0.8421 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.598e-05/0.004302, allocations: 52.22 kB / 0.8421 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.004304, allocations: 0 / 0.8421 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 6.392e-05/0.004368, allocations: 69.55 kB / 0.8422 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.004378, allocations: 4 kB / 0.8422 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.004383, allocations: 7.984 kB / 0.8422 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.004394, allocations: 3.938 kB / 0.8422 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.644e-05/0.00445, allocations: 20.12 kB / 0.8422 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.427e-06/0.004454, allocations: 3.938 kB / 0.8422 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.383e-05/0.004478, allocations: 7.984 kB / 0.8422 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.004485, allocations: 4 kB / 0.8422 GB, free: 10.26 MB / 0.8073 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.151e-05/0.004536, allocations: 113.8 kB / 0.8424 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.115e-06/0.004545, allocations: 8.031 kB / 0.8424 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.149e-05/0.004616, allocations: 58.11 kB / 0.8424 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.004619, allocations: 7.875 kB / 0.8424 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-06/0.00462, allocations: 0 / 0.8424 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.004623, allocations: 0 / 0.8424 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.004773, allocations: 222.7 kB / 0.8426 GB, free: 9.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.004774, allocations: 0 / 0.8426 GB, free: 9.82 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.308e-05/0.004797, allocations: 4 kB / 0.8426 GB, free: 9.816 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.004798, allocations: 0 / 0.8426 GB, free: 9.816 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.004804, allocations: 3.938 kB / 0.8426 GB, free: 9.812 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.004805, allocations: 4 kB / 0.8426 GB, free: 9.809 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.004806, allocations: 3.938 kB / 0.8427 GB, free: 9.805 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.505e-05/0.004881, allocations: 147.5 kB / 0.8428 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.859e-06/0.004886, allocations: 0 / 0.8428 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.0049, allocations: 11.94 kB / 0.8428 GB, free: 9.633 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.791e-05/0.004938, allocations: 8.234 kB / 0.8428 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.417e-05/0.004962, allocations: 7.984 kB / 0.8428 GB, free: 9.617 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-06/0.004972, allocations: 8 kB / 0.8428 GB, free: 9.609 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.154e-05/0.004983, allocations: 8.859 kB / 0.8428 GB, free: 9.598 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.004983, allocations: 0 / 0.8428 GB, free: 9.598 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001287/0.005112, allocations: 16 kB / 0.8428 GB, free: 9.582 MB / 0.8073 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.082e-05/0.005203, allocations: 84.34 kB / 0.8429 GB, free: 9.488 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.739e-05/0.00527, allocations: 40.77 kB / 0.843 GB, free: 9.445 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.005272, allocations: 0 / 0.843 GB, free: 9.445 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.703e-05/0.005299, allocations: 25.05 kB / 0.843 GB, free: 9.418 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.005424, allocations: 9.703 kB / 0.843 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.005785, allocations: 144.5 kB / 0.8431 GB, free: 9.242 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.591e-05/0.005821, allocations: 59.34 kB / 0.8432 GB, free: 9.164 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.149e-05/0.005842, allocations: 7.75 kB / 0.8432 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.798e-05/0.00589, allocations: 55.38 kB / 0.8433 GB, free: 9.102 MB / 0.8073 GB Notification: Performance of SimCode: time 3.01e-07/0.005891, allocations: 4 kB / 0.8433 GB, free: 9.098 MB / 0.8073 GB Notification: Performance of Templates: time 0.002501/0.008392, allocations: 0.9225 MB / 0.8442 GB, free: 8.195 MB / 0.8073 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] 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","",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.258988858666271]