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.001355/0.001355, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001417/0.001417, allocations: 169 kB / 23.02 MB, free: 1.547 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.9519/0.9519, allocations: 177.1 MB / 203.4 MB, free: 5.645 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.075/2.075, allocations: 429.5 MB / 0.6733 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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 2.164e-06/2.164e-06, allocations: 0 / 0.8781 GB, free: 6.301 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.727e-05/1.944e-05, allocations: 5.859 kB / 0.8782 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001197/0.001216, allocations: 0.6967 MB / 0.8788 GB, free: 5.621 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.002267, allocations: 1.139 MB / 0.8799 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.632e-05/0.002313, allocations: 0.6875 kB / 0.8799 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.123e-05/0.002344, allocations: 3.938 kB / 0.88 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.337e-05/0.002418, allocations: 19.03 kB / 0.88 GB, free: 4.453 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.002693, allocations: 47.77 kB / 0.88 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.002795, allocations: 76.47 kB / 0.8801 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.337e-05/0.002878, allocations: 7.938 kB / 0.8801 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.002987, allocations: 41.22 kB / 0.8801 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.717e-05/0.003035, allocations: 23.95 kB / 0.8802 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.003052, allocations: 8 kB / 0.8802 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.156e-05/0.003114, allocations: 23.95 kB / 0.8802 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.272e-05/0.003136, allocations: 19.91 kB / 0.8802 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.977e-05/0.003166, allocations: 16 kB / 0.8802 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.003295, allocations: 67.77 kB / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.724e-06/0.003297, allocations: 0 / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.01e-07/0.003297, allocations: 0 / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.003301, allocations: 0 / 0.8803 GB, free: 4.133 MB / 0.8386 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.0004358/0.003737, allocations: 404.4 kB / 0.8807 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.003771, allocations: 8.031 kB / 0.8807 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.003877, allocations: 21.78 kB / 0.8807 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.298e-05/0.00395, allocations: 112.6 kB / 0.8808 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.003968, allocations: 5.406 kB / 0.8808 GB, free: 3.531 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.003982, allocations: 8.375 kB / 0.8808 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.00411, allocations: 78.86 kB / 0.8809 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.004117, allocations: 1.312 kB / 0.8809 GB, free: 3.438 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.004128, allocations: 4.359 kB / 0.8809 GB, free: 3.434 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.004135, allocations: 8.375 kB / 0.8809 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.518e-05/0.00418, allocations: 24.98 kB / 0.8809 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003776/0.004558, allocations: 295.1 kB / 0.8812 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.004659, allocations: 63.03 kB / 0.8813 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.215e-05/0.004691, allocations: 19.69 kB / 0.8813 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.004708, allocations: 4 kB / 0.8813 GB, free: 2.98 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.243e-05/0.00479, allocations: 81.09 kB / 0.8814 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.004791, allocations: 0 / 0.8814 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002134/0.005005, allocations: 121.5 kB / 0.8815 GB, free: 2.762 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.005038, allocations: 55.41 kB / 0.8815 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.125e-05/0.005109, allocations: 162.9 kB / 0.8817 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.005124, allocations: 33.7 kB / 0.8817 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.524e-05/0.005169, allocations: 135.1 kB / 0.8819 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.005191, allocations: 28.34 kB / 0.8819 GB, free: 2.312 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.005495, allocations: 40.8 kB / 0.8819 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.005594, allocations: 0.4884 MB / 0.8824 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.401e-05/0.005628, allocations: 15.98 kB / 0.8824 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.686e-05/0.005675, allocations: 55.03 kB / 0.8825 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.457e-05/0.00575, allocations: 68.3 kB / 0.8825 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.005752, allocations: 0 / 0.8825 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001125/0.005864, allocations: 102.8 kB / 0.8826 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.005877, allocations: 7.938 kB / 0.8826 GB, free: 1.492 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.005882, allocations: 8.062 kB / 0.8826 GB, free: 1.484 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.005892, allocations: 0 / 0.8826 GB, free: 1.484 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.268e-05/0.005975, allocations: 27.92 kB / 0.8827 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.005981, allocations: 4 kB / 0.8827 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.749e-05/0.006008, allocations: 7.953 kB / 0.8827 GB, free: 1.445 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.006017, allocations: 4 kB / 0.8827 GB, free: 1.441 MB / 0.8386 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.116e-05/0.006088, allocations: 168.5 kB / 0.8829 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.006101, allocations: 19.81 kB / 0.8829 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.006237, allocations: 110.4 kB / 0.883 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.006239, allocations: 0 / 0.883 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.006242, allocations: 4 kB / 0.883 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.006247, allocations: 3.984 kB / 0.883 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.006477, allocations: 365.3 kB / 0.8833 GB, free: 0.7227 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.00648, allocations: 4 kB / 0.8833 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.821e-05/0.006508, allocations: 7.984 kB / 0.8833 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.00651, allocations: 0 / 0.8833 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.006518, allocations: 4 kB / 0.8833 GB, free: 0.707 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.006519, allocations: 256 / 0.8833 GB, free: 0.707 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.006521, allocations: 4 kB / 0.8834 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001482/0.006669, allocations: 267.7 kB / 0.8836 GB, free: 432 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.454e-06/0.006676, allocations: 7.953 kB / 0.8836 GB, free: 424 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.006692, allocations: 4 kB / 0.8836 GB, free: 420 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.246e-05/0.006734, allocations: 4 kB / 0.8836 GB, free: 416 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.00677, allocations: 7.984 kB / 0.8836 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.006777, allocations: 7.984 kB / 0.8836 GB, free: 400 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.323e-05/0.00681, allocations: 123.2 kB / 0.8838 GB, free: 276 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.006811, allocations: 0 / 0.8838 GB, free: 276 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001608/0.006971, allocations: 20 kB / 0.8838 GB, free: 256 kB / 0.8386 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.879e-05/0.00707, allocations: 111.2 kB / 0.8839 GB, free: 136 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.007197, allocations: 71.53 kB / 0.8839 GB, free: 60 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.007199, allocations: 0 / 0.8839 GB, free: 60 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.17e-05/0.007241, allocations: 35.67 kB / 0.884 GB, free: 20 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.007411, allocations: 11.92 kB / 0.884 GB, free: 8 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004515/0.007862, allocations: 166.7 kB / 0.8842 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.264e-05/0.007895, allocations: 59.34 kB / 0.8842 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.454e-05/0.00792, allocations: 12.61 kB / 0.8842 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.749e-05/0.007947, allocations: 20.5 kB / 0.8842 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of SimCode: time 4.21e-07/0.007947, allocations: 0 / 0.8842 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of Templates: time 0.002727/0.01067, allocations: 1.158 MB / 0.8854 GB, free: 14.58 MB / 0.8542 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 -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.241701159160584]