Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001303/0.001303, allocations: 80.88 kB / 19.94 MB, free: 4.547 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.00164/0.00164, allocations: 181 kB / 23.36 MB, free: 1.133 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.026/1.026, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.47/2.47, allocations: 438.8 MB / 0.6827 GB, free: 13.57 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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 3.938 kB / 0.8386 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.451e-05/1.637e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001861/0.001878, allocations: 0.7406 MB / 0.8393 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001061/0.002939, allocations: 1.131 MB / 0.8404 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.2e-05/0.002981, allocations: 0 / 0.8404 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.774e-05/0.003009, allocations: 3.938 kB / 0.8404 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.304e-05/0.003072, allocations: 11.92 kB / 0.8405 GB, free: 12.24 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.003296, allocations: 55.62 kB / 0.8405 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 9.519e-05/0.003391, allocations: 71.83 kB / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 6.944e-05/0.00346, allocations: 4 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 9.32e-05/0.003554, allocations: 43.97 kB / 0.8406 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.712e-05/0.003601, allocations: 27.89 kB / 0.8406 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.003617, allocations: 8 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.825e-05/0.003685, allocations: 23.98 kB / 0.8407 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.772e-05/0.003703, allocations: 15.91 kB / 0.8407 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.464e-05/0.003728, allocations: 19.98 kB / 0.8407 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.003834, allocations: 67.72 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.694e-06/0.003836, allocations: 0 / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of FrontEnd: time 5.11e-07/0.003836, allocations: 0 / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.005e-06/0.003839, allocations: 0 / 0.8408 GB, free: 11.91 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003514/0.004191, allocations: 288.7 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.004221, allocations: 8.031 kB / 0.8411 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.057e-05/0.004301, allocations: 12.92 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.992e-05/0.004371, allocations: 109.8 kB / 0.8412 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.004393, allocations: 8.375 kB / 0.8412 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.004403, allocations: 4.375 kB / 0.8412 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.004509, allocations: 78.91 kB / 0.8413 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.004517, allocations: 8.062 kB / 0.8413 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.223e-06/0.004524, allocations: 384 / 0.8413 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.00453, allocations: 4.375 kB / 0.8413 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.89e-05/0.004558, allocations: 15.94 kB / 0.8413 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002593/0.004818, allocations: 176.2 kB / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.832e-05/0.004886, allocations: 50.73 kB / 0.8415 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.028e-05/0.004906, allocations: 16.8 kB / 0.8415 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.004919, allocations: 0 / 0.8415 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.776e-05/0.004986, allocations: 71.38 kB / 0.8416 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 7.31e-07/0.004987, allocations: 0 / 0.8416 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.000121/0.005108, allocations: 81.55 kB / 0.8417 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.005139, allocations: 59.39 kB / 0.8417 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.539e-05/0.005194, allocations: 118.6 kB / 0.8418 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.005206, allocations: 25.7 kB / 0.8419 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.005238, allocations: 92.36 kB / 0.842 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.005261, allocations: 27.77 kB / 0.842 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.005297, allocations: 29.7 kB / 0.842 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.013e-05/0.005368, allocations: 318.8 kB / 0.8423 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.371e-05/0.005391, allocations: 11.94 kB / 0.8423 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.341e-05/0.005425, allocations: 41.92 kB / 0.8424 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.642e-05/0.005481, allocations: 54.64 kB / 0.8424 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.005483, allocations: 3.938 kB / 0.8424 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 8.424e-05/0.005567, allocations: 85.53 kB / 0.8425 GB, free: 9.965 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.005579, allocations: 11.94 kB / 0.8425 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.005583, allocations: 0 / 0.8425 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.005596, allocations: 7.922 kB / 0.8425 GB, free: 9.945 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.543e-05/0.005672, allocations: 23.98 kB / 0.8425 GB, free: 9.922 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-06/0.005675, allocations: 0 / 0.8425 GB, free: 9.922 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.875e-05/0.005703, allocations: 20.02 kB / 0.8426 GB, free: 9.902 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.005711, allocations: 0 / 0.8426 GB, free: 9.902 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 6.195e-05/0.005773, allocations: 129.7 kB / 0.8427 GB, free: 9.766 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-06/0.005782, allocations: 8 kB / 0.8427 GB, free: 9.758 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.133e-05/0.005863, allocations: 66.11 kB / 0.8428 GB, free: 9.691 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.005867, allocations: 11.92 kB / 0.8428 GB, free: 9.68 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.005868, allocations: 0 / 0.8428 GB, free: 9.68 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.005871, allocations: 0 / 0.8428 GB, free: 9.68 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.006036, allocations: 219.2 kB / 0.843 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.006037, allocations: 0 / 0.843 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.926e-05/0.006066, allocations: 15.94 kB / 0.843 GB, free: 9.426 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-06/0.006067, allocations: 0 / 0.843 GB, free: 9.426 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.006074, allocations: 3.938 kB / 0.843 GB, free: 9.422 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.006076, allocations: 7.984 kB / 0.843 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.006079, allocations: 3.984 kB / 0.843 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.448e-05/0.006164, allocations: 163.5 kB / 0.8432 GB, free: 9.234 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-06/0.006171, allocations: 11.89 kB / 0.8432 GB, free: 9.223 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.006184, allocations: 3.938 kB / 0.8432 GB, free: 9.219 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.366e-05/0.006228, allocations: 8.234 kB / 0.8432 GB, free: 9.211 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.727e-05/0.006255, allocations: 11.98 kB / 0.8432 GB, free: 9.199 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.00626, allocations: 4 kB / 0.8432 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.186e-05/0.006272, allocations: 16.86 kB / 0.8432 GB, free: 9.176 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.006272, allocations: 0 / 0.8432 GB, free: 9.176 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001427/0.006414, allocations: 19.98 kB / 0.8432 GB, free: 9.156 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.381e-05/0.006508, allocations: 88.34 kB / 0.8433 GB, free: 9.059 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.707e-05/0.006595, allocations: 56.77 kB / 0.8434 GB, free: 9 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.006597, allocations: 0 / 0.8434 GB, free: 9 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.237e-05/0.006629, allocations: 24.8 kB / 0.8434 GB, free: 8.973 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.00676, allocations: 20.11 kB / 0.8434 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000351/0.007111, allocations: 157.2 kB / 0.8436 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.187e-05/0.007143, allocations: 59.36 kB / 0.8436 GB, free: 8.695 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.564e-05/0.007169, allocations: 8.484 kB / 0.8436 GB, free: 8.688 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.972e-05/0.007218, allocations: 59.31 kB / 0.8437 GB, free: 8.629 MB / 0.8073 GB Notification: Performance of SimCode: time 4.81e-07/0.007219, allocations: 0 / 0.8437 GB, free: 8.629 MB / 0.8073 GB Notification: Performance of Templates: time 0.002765/0.009984, allocations: 1.123 MB / 0.8448 GB, free: 7.527 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.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.308778436854482]