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.001476/0.001476, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.00193/0.00193, allocations: 177 kB / 23.36 MB, free: 1.137 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 1.043/1.043, allocations: 177.1 MB / 203.8 MB, free: 5.434 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.571/2.571, allocations: 438.8 MB / 0.6826 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 3.316e-06/3.316e-06, allocations: 0 / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.788e-05/3.12e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002271/0.002302, allocations: 0.7233 MB / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00172/0.004022, allocations: 1.135 MB / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.066e-05/0.004073, allocations: 4 kB / 0.8404 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 3.061e-05/0.004103, allocations: 0 / 0.8404 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 8.113e-05/0.004184, allocations: 7.922 kB / 0.8404 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.004498, allocations: 55.64 kB / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.004603, allocations: 43.86 kB / 0.8405 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 9.322e-05/0.004697, allocations: 11.98 kB / 0.8405 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.004801, allocations: 27.97 kB / 0.8406 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.905e-05/0.00486, allocations: 23.91 kB / 0.8406 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.004877, allocations: 4 kB / 0.8406 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 9.799e-05/0.004975, allocations: 23.97 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.085e-05/0.004996, allocations: 12 kB / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.005026, allocations: 15.92 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.005172, allocations: 51.81 kB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.005176, allocations: 0 / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.113e-06/0.005177, allocations: 0 / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.005182, allocations: 0 / 0.8407 GB, free: 12.06 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.0004587/0.005641, allocations: 268.7 kB / 0.8409 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.005681, allocations: 12.03 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.005797, allocations: 12.86 kB / 0.841 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.005907, allocations: 121.8 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.00592, allocations: 4.375 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.00593, allocations: 4.359 kB / 0.8411 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.006073, allocations: 66.92 kB / 0.8412 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.006082, allocations: 4.125 kB / 0.8412 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.006092, allocations: 4.375 kB / 0.8412 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.006098, allocations: 384 / 0.8412 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.621e-05/0.006135, allocations: 7.938 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003481/0.006483, allocations: 168.2 kB / 0.8413 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.46e-05/0.006577, allocations: 30.58 kB / 0.8414 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.851e-05/0.006606, allocations: 20.91 kB / 0.8414 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.006623, allocations: 0 / 0.8414 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.624e-05/0.006719, allocations: 63.44 kB / 0.8414 GB, free: 11.19 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.006721, allocations: 0 / 0.8414 GB, free: 11.19 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001547/0.006875, allocations: 53.62 kB / 0.8415 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.00692, allocations: 59.41 kB / 0.8415 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.923e-05/0.006999, allocations: 110.6 kB / 0.8417 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.007015, allocations: 29.7 kB / 0.8417 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.007054, allocations: 88.06 kB / 0.8418 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.007083, allocations: 23.84 kB / 0.8418 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.007127, allocations: 25.72 kB / 0.8418 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.007231, allocations: 318.8 kB / 0.8421 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.34e-05/0.007255, allocations: 4 kB / 0.8421 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.662e-05/0.007301, allocations: 44.27 kB / 0.8422 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.356e-05/0.007375, allocations: 48.22 kB / 0.8422 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.007378, allocations: 4 kB / 0.8422 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001291/0.007508, allocations: 73.55 kB / 0.8423 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.007525, allocations: 7.984 kB / 0.8423 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.007532, allocations: 4 kB / 0.8423 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.007549, allocations: 3.938 kB / 0.8423 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.007652, allocations: 15.94 kB / 0.8423 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.007658, allocations: 11.92 kB / 0.8423 GB, free: 10.19 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.536e-05/0.007703, allocations: 4 kB / 0.8423 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.007715, allocations: 4 kB / 0.8423 GB, free: 10.18 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 7.966e-05/0.007795, allocations: 109.8 kB / 0.8424 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.00781, allocations: 8.125 kB / 0.8424 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.007934, allocations: 62.05 kB / 0.8425 GB, free: 9.992 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.007939, allocations: 3.938 kB / 0.8425 GB, free: 9.988 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.00794, allocations: 0 / 0.8425 GB, free: 9.988 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.007946, allocations: 3.984 kB / 0.8425 GB, free: 9.984 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.008228, allocations: 214.7 kB / 0.8427 GB, free: 9.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.00823, allocations: 256 / 0.8427 GB, free: 9.75 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.398e-05/0.008294, allocations: 8 kB / 0.8427 GB, free: 9.742 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.008301, allocations: 8.031 kB / 0.8427 GB, free: 9.734 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.008309, allocations: 3.938 kB / 0.8427 GB, free: 9.73 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.008314, allocations: 7.922 kB / 0.8427 GB, free: 9.723 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.008315, allocations: 4 kB / 0.8427 GB, free: 9.719 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.008445, allocations: 147.5 kB / 0.8429 GB, free: 9.559 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.186e-05/0.008457, allocations: 4 kB / 0.8429 GB, free: 9.555 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.008475, allocations: 7.922 kB / 0.8429 GB, free: 9.547 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-05/0.008558, allocations: 4 kB / 0.8429 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.899e-05/0.008597, allocations: 7.984 kB / 0.8429 GB, free: 9.535 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.008609, allocations: 4 kB / 0.8429 GB, free: 9.531 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.877e-05/0.008628, allocations: 8.859 kB / 0.8429 GB, free: 9.52 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1e-07/0.008628, allocations: 0 / 0.8429 GB, free: 9.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002465/0.008874, allocations: 12 kB / 0.8429 GB, free: 9.508 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 0.0001528/0.009027, allocations: 88.41 kB / 0.843 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001047/0.009132, allocations: 40.77 kB / 0.8431 GB, free: 9.367 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.009136, allocations: 3.938 kB / 0.8431 GB, free: 9.363 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.776e-05/0.009174, allocations: 16.84 kB / 0.8431 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.009383, allocations: 14.19 kB / 0.8431 GB, free: 9.332 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005148/0.009898, allocations: 141.5 kB / 0.8432 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.649e-05/0.009944, allocations: 67.28 kB / 0.8433 GB, free: 9.082 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.744e-05/0.009982, allocations: 7.75 kB / 0.8433 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.247e-05/0.01004, allocations: 59.36 kB / 0.8434 GB, free: 9.016 MB / 0.8073 GB Notification: Performance of SimCode: time 9.82e-07/0.01005, allocations: 0 / 0.8434 GB, free: 9.016 MB / 0.8073 GB Notification: Performance of Templates: time 0.002755/0.0128, allocations: 0.9191 MB / 0.8443 GB, free: 8.117 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 -s gbode -gbm=radauIIA3 -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.491422887891531]