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.001351/0.001351, allocations: 92.22 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.001502/0.001502, allocations: 169 kB / 23.02 MB, free: 1.551 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.9779/0.9779, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.165/2.165, allocations: 429.5 MB / 0.6732 GB, free: 4.035 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 1.894e-06/1.894e-06, allocations: 0.7656 kB / 0.8781 GB, free: 6.168 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.528e-05/1.717e-05, allocations: 3.344 kB / 0.8781 GB, free: 6.164 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001196/0.001213, allocations: 0.7038 MB / 0.8788 GB, free: 5.48 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.002221, allocations: 1.132 MB / 0.8799 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.026e-05/0.002261, allocations: 0 / 0.8799 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.726e-05/0.002288, allocations: 5.531 kB / 0.8799 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.503e-05/0.002353, allocations: 14.94 kB / 0.88 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.002612, allocations: 56.56 kB / 0.88 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 9.289e-05/0.002705, allocations: 68.22 kB / 0.8801 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.668e-05/0.002792, allocations: 9.734 kB / 0.8801 GB, free: 4.195 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.116e-05/0.002873, allocations: 35.97 kB / 0.8801 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.117e-05/0.002924, allocations: 27.89 kB / 0.8802 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.002941, allocations: 8 kB / 0.8802 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.703e-05/0.002998, allocations: 22.8 kB / 0.8802 GB, free: 4.105 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.003021, allocations: 23.91 kB / 0.8802 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.003052, allocations: 19.92 kB / 0.8802 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.003178, allocations: 67.78 kB / 0.8803 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.00318, allocations: 0 / 0.8803 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.81e-07/0.003181, allocations: 0 / 0.8803 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.003185, allocations: 0 / 0.8803 GB, free: 3.996 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.0004305/0.003616, allocations: 409.1 kB / 0.8807 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.003649, allocations: 9.688 kB / 0.8807 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.519e-05/0.003744, allocations: 12.89 kB / 0.8807 GB, free: 3.539 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.803e-05/0.003822, allocations: 116.6 kB / 0.8808 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.003844, allocations: 8.359 kB / 0.8808 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.003859, allocations: 9.719 kB / 0.8808 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.003984, allocations: 74.92 kB / 0.8809 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.003992, allocations: 192 / 0.8809 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.004001, allocations: 4.375 kB / 0.8809 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.004009, allocations: 384 / 0.8809 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.648e-05/0.004055, allocations: 23.92 kB / 0.8809 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003462/0.004401, allocations: 303.5 kB / 0.8812 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.983e-05/0.004501, allocations: 59.05 kB / 0.8813 GB, free: 2.871 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.23e-05/0.004533, allocations: 19.67 kB / 0.8813 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.004553, allocations: 4 kB / 0.8813 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.258e-05/0.004635, allocations: 85.09 kB / 0.8814 GB, free: 2.746 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.002e-06/0.004636, allocations: 4 kB / 0.8814 GB, free: 2.742 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002118/0.004848, allocations: 121.5 kB / 0.8815 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.004879, allocations: 55.41 kB / 0.8815 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.997e-05/0.004949, allocations: 165.9 kB / 0.8817 GB, free: 2.371 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.004964, allocations: 33.7 kB / 0.8817 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.255e-05/0.005007, allocations: 131.1 kB / 0.8819 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.005033, allocations: 31.78 kB / 0.8819 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.005073, allocations: 39.36 kB / 0.8819 GB, free: 2.117 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.005174, allocations: 0.4923 MB / 0.8824 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.019e-05/0.005205, allocations: 8 kB / 0.8824 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.488e-05/0.005249, allocations: 51.03 kB / 0.8825 GB, free: 1.543 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.381e-05/0.005323, allocations: 71 kB / 0.8825 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.005325, allocations: 0 / 0.8825 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001212/0.005446, allocations: 113.5 kB / 0.8826 GB, free: 1.344 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.005458, allocations: 7.938 kB / 0.8827 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.005462, allocations: 0 / 0.8827 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.005475, allocations: 4 kB / 0.8827 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.476e-05/0.00556, allocations: 23.92 kB / 0.8827 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.005566, allocations: 4 kB / 0.8827 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.86e-05/0.005594, allocations: 16.02 kB / 0.8827 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.005604, allocations: 7.984 kB / 0.8827 GB, free: 1.281 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 6.485e-05/0.005669, allocations: 160.6 kB / 0.8829 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.249e-05/0.005681, allocations: 11.89 kB / 0.8829 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.00582, allocations: 118 kB / 0.883 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.005821, allocations: 0 / 0.883 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.005824, allocations: 0 / 0.883 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.005827, allocations: 0 / 0.883 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.006061, allocations: 365.7 kB / 0.8833 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.006062, allocations: 0 / 0.8833 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.311e-05/0.006105, allocations: 15.94 kB / 0.8833 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.006107, allocations: 0 / 0.8833 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.006118, allocations: 4 kB / 0.8833 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.00612, allocations: 3.984 kB / 0.8834 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.006121, allocations: 0 / 0.8834 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.00633, allocations: 255.8 kB / 0.8836 GB, free: 292 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-06/0.006337, allocations: 7.953 kB / 0.8836 GB, free: 284 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.565e-05/0.006353, allocations: 4 kB / 0.8836 GB, free: 280 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.718e-05/0.00641, allocations: 11.98 kB / 0.8836 GB, free: 268 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.006442, allocations: 3.984 kB / 0.8836 GB, free: 264 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.613e-06/0.006449, allocations: 8.25 kB / 0.8836 GB, free: 256 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.308e-05/0.006482, allocations: 135.1 kB / 0.8838 GB, free: 120 kB / 0.8386 GB Notification: Performance of sort global known variables: time 8e-08/0.006482, allocations: 0 / 0.8838 GB, free: 120 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001591/0.006641, allocations: 23.98 kB / 0.8838 GB, free: 96 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 0.0001163/0.006758, allocations: 108.4 kB / 0.8839 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001183/0.006876, allocations: 66.27 kB / 0.8839 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.006877, allocations: 0 / 0.8839 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.41e-05/0.006921, allocations: 35.61 kB / 0.884 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001828/0.007104, allocations: 20.05 kB / 0.884 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004546/0.007558, allocations: 170.8 kB / 0.8842 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.366e-05/0.007592, allocations: 59.3 kB / 0.8842 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.439e-05/0.007617, allocations: 8.484 kB / 0.8842 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.783e-05/0.007644, allocations: 16.5 kB / 0.8842 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of SimCode: time 5.21e-07/0.007645, allocations: 0 / 0.8842 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of Templates: time 0.002803/0.01045, allocations: 1.096 MB / 0.8853 GB, free: 14.49 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.621336766984314]