Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009665/0.0009665, allocations: 81.86 kB / 20.68 MB, free: 3.812 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.0009708/0.0009708, allocations: 181 kB / 24.09 MB, free: 416 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.9202/0.9202, allocations: 177.1 MB / 204.5 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.701/1.701, allocations: 359 MB / 0.6055 GB, free: 10.85 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.605e-06/2.605e-06, allocations: 0 / 0.7875 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.64e-05/1.901e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.19 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001289/0.001308, allocations: 0.6941 MB / 0.7882 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001121/0.002429, allocations: 1.121 MB / 0.7893 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.448e-05/0.002473, allocations: 0 / 0.7893 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.0025, allocations: 13.23 kB / 0.7893 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.404e-05/0.002564, allocations: 7.875 kB / 0.7893 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.002795, allocations: 55.7 kB / 0.7894 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.722e-05/0.002883, allocations: 73.03 kB / 0.7895 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 7.77e-05/0.00296, allocations: 11.94 kB / 0.7895 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.547e-05/0.003046, allocations: 35.95 kB / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.003091, allocations: 25.66 kB / 0.7895 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.003109, allocations: 8 kB / 0.7895 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.72e-05/0.003176, allocations: 27.97 kB / 0.7896 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.003198, allocations: 11.98 kB / 0.7896 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.713e-05/0.003226, allocations: 23.91 kB / 0.7896 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.00335, allocations: 56.7 kB / 0.7896 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.003352, allocations: 3.938 kB / 0.7896 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.02e-07/0.003353, allocations: 4.594 kB / 0.7897 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.003359, allocations: 0 / 0.7897 GB, free: 10.04 MB / 0.7448 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.0004479/0.003807, allocations: 409.8 kB / 0.79 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.003848, allocations: 13.09 kB / 0.7901 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.177e-05/0.003939, allocations: 12.89 kB / 0.7901 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.45e-05/0.004014, allocations: 112.6 kB / 0.7902 GB, free: 9.438 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.00403, allocations: 5.75 kB / 0.7902 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.004041, allocations: 8.375 kB / 0.7902 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.004162, allocations: 78.84 kB / 0.7903 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.004169, allocations: 1.781 kB / 0.7903 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.004179, allocations: 4.375 kB / 0.7903 GB, free: 9.336 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.004184, allocations: 384 / 0.7903 GB, free: 9.336 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.591e-05/0.00422, allocations: 27.86 kB / 0.7903 GB, free: 9.309 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003109/0.004531, allocations: 275 kB / 0.7906 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.81e-05/0.004609, allocations: 55.14 kB / 0.7906 GB, free: 8.949 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.309e-05/0.004632, allocations: 19.81 kB / 0.7906 GB, free: 8.926 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.004652, allocations: 7.938 kB / 0.7906 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.817e-05/0.00473, allocations: 77.73 kB / 0.7907 GB, free: 8.828 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.113e-06/0.004731, allocations: 0 / 0.7907 GB, free: 8.828 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0001766/0.004908, allocations: 119.1 kB / 0.7908 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.00494, allocations: 55.39 kB / 0.7909 GB, free: 8.641 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.799e-05/0.005008, allocations: 165.9 kB / 0.791 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.005023, allocations: 33.7 kB / 0.7911 GB, free: 8.422 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.859e-05/0.005071, allocations: 131.1 kB / 0.7912 GB, free: 8.285 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.005096, allocations: 33.52 kB / 0.7912 GB, free: 8.254 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.794e-05/0.005134, allocations: 39.36 kB / 0.7913 GB, free: 8.207 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.005241, allocations: 0.4884 MB / 0.7917 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.967e-05/0.00526, allocations: 19.92 kB / 0.7918 GB, free: 7.688 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.3e-05/0.005293, allocations: 44.09 kB / 0.7918 GB, free: 7.633 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.858e-05/0.005352, allocations: 60.64 kB / 0.7919 GB, free: 7.562 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.005354, allocations: 0 / 0.7919 GB, free: 7.562 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 9.87e-05/0.005452, allocations: 97.45 kB / 0.792 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.005463, allocations: 4 kB / 0.792 GB, free: 7.457 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.005471, allocations: 13.92 kB / 0.792 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.005483, allocations: 0 / 0.792 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-05/0.005556, allocations: 20 kB / 0.792 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.00556, allocations: 7.984 kB / 0.792 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.399e-05/0.005584, allocations: 4 kB / 0.792 GB, free: 7.414 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.005592, allocations: 4.594 kB / 0.792 GB, free: 7.41 MB / 0.7448 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 7.014e-05/0.005662, allocations: 169 kB / 0.7922 GB, free: 7.234 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.005673, allocations: 12.67 kB / 0.7922 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.005793, allocations: 109.9 kB / 0.7923 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.005796, allocations: 0.5312 kB / 0.7923 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.005797, allocations: 1.469 kB / 0.7923 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.0058, allocations: 0 / 0.7923 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.006027, allocations: 345.9 kB / 0.7926 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.006028, allocations: 0 / 0.7926 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.891e-05/0.006057, allocations: 8.531 kB / 0.7926 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.00606, allocations: 5.312 kB / 0.7926 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.006068, allocations: 8.234 kB / 0.7926 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.006069, allocations: 4 kB / 0.7926 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.00607, allocations: 0 / 0.7926 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003592/0.00643, allocations: 245 kB / 0.7929 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-06/0.006436, allocations: 7.953 kB / 0.7929 GB, free: 6.453 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.006449, allocations: 3.938 kB / 0.7929 GB, free: 6.449 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.263e-05/0.006492, allocations: 9.359 kB / 0.7929 GB, free: 6.441 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.006522, allocations: 11.98 kB / 0.7929 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.006527, allocations: 0 / 0.7929 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.413e-05/0.006561, allocations: 132.1 kB / 0.793 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.006561, allocations: 0 / 0.793 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001515/0.006713, allocations: 20 kB / 0.793 GB, free: 6.281 MB / 0.7448 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 0.0001089/0.006822, allocations: 111.9 kB / 0.7932 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.26e-05/0.006915, allocations: 60.94 kB / 0.7932 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.006916, allocations: 0 / 0.7932 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.684e-05/0.006953, allocations: 27.67 kB / 0.7932 GB, free: 6.066 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001741/0.007127, allocations: 16.73 kB / 0.7933 GB, free: 6.055 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003672/0.007494, allocations: 176.5 kB / 0.7934 GB, free: 5.855 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.231e-05/0.007527, allocations: 59.34 kB / 0.7935 GB, free: 5.777 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.327e-05/0.00755, allocations: 5.375 kB / 0.7935 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.292e-05/0.007603, allocations: 82.19 kB / 0.7936 GB, free: 5.691 MB / 0.7448 GB Notification: Performance of SimCode: time 6.81e-07/0.007603, allocations: 3.469 kB / 0.7936 GB, free: 5.691 MB / 0.7448 GB Notification: Performance of Templates: time 0.002518/0.01012, allocations: 1.185 MB / 0.7947 GB, free: 4.543 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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: 4.752470468636602]