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.001472/0.001472, allocations: 80.94 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.001507/0.001507, allocations: 173 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/1, allocations: 177.1 MB / 203.8 MB, free: 5.5 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.416/2.416, allocations: 438.8 MB / 0.6826 GB, free: 13.63 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.734e-06/1.734e-06, allocations: 0 / 0.8385 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.795e-05/1.969e-05, allocations: 6.25 kB / 0.8386 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001476/0.001496, allocations: 0.7002 MB / 0.8392 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001312/0.002808, allocations: 1.131 MB / 0.8403 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.589e-05/0.002854, allocations: 3.938 kB / 0.8403 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.645e-05/0.002881, allocations: 7.938 kB / 0.8404 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.973e-05/0.00295, allocations: 11.94 kB / 0.8404 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.003215, allocations: 55.69 kB / 0.8404 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 9.969e-05/0.003314, allocations: 67.83 kB / 0.8405 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 6.729e-05/0.003382, allocations: 11.98 kB / 0.8405 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 8.446e-05/0.003466, allocations: 39.89 kB / 0.8405 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.573e-05/0.003522, allocations: 23.95 kB / 0.8406 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.003538, allocations: 8 kB / 0.8406 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.812e-05/0.003597, allocations: 23.94 kB / 0.8406 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.197e-05/0.003619, allocations: 11.98 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.003648, allocations: 27.91 kB / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.003773, allocations: 63.8 kB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.023e-06/0.003775, allocations: 0 / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.82e-07/0.003775, allocations: 0 / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.446e-06/0.003779, allocations: 0 / 0.8407 GB, free: 12.05 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.0003853/0.004164, allocations: 284.6 kB / 0.841 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.004199, allocations: 12.03 kB / 0.841 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.629e-05/0.004285, allocations: 12.92 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.386e-05/0.004369, allocations: 113.7 kB / 0.8411 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.004386, allocations: 8.375 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.004401, allocations: 4.375 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.004522, allocations: 82.84 kB / 0.8412 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.00453, allocations: 192 / 0.8412 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.004539, allocations: 4.375 kB / 0.8412 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.004544, allocations: 384 / 0.8412 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.54e-05/0.00458, allocations: 15.94 kB / 0.8412 GB, free: 11.47 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002744/0.004854, allocations: 176.2 kB / 0.8414 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.329e-05/0.004937, allocations: 50.5 kB / 0.8414 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.466e-05/0.004962, allocations: 16.86 kB / 0.8414 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.004976, allocations: 4 kB / 0.8414 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.485e-05/0.005051, allocations: 63.36 kB / 0.8415 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.005052, allocations: 0 / 0.8415 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0001444/0.005196, allocations: 85.83 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.005233, allocations: 59.34 kB / 0.8416 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.382e-05/0.005297, allocations: 118.6 kB / 0.8417 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.005314, allocations: 29.7 kB / 0.8418 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.005349, allocations: 84.38 kB / 0.8419 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.001e-05/0.005379, allocations: 35.77 kB / 0.8419 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/0.005423, allocations: 33.69 kB / 0.8419 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.095e-05/0.005504, allocations: 318.8 kB / 0.8422 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.197e-05/0.005526, allocations: 11.98 kB / 0.8422 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.675e-05/0.005563, allocations: 34.56 kB / 0.8423 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.52e-05/0.005628, allocations: 50.48 kB / 0.8423 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.00563, allocations: 0 / 0.8423 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001065/0.005736, allocations: 81.84 kB / 0.8424 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.00575, allocations: 10.09 kB / 0.8424 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.005754, allocations: 4 kB / 0.8424 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.005768, allocations: 7.938 kB / 0.8424 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.748e-05/0.005855, allocations: 23.98 kB / 0.8424 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-06/0.005859, allocations: 0 / 0.8424 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.573e-05/0.005894, allocations: 11.89 kB / 0.8425 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.005904, allocations: 8 kB / 0.8425 GB, free: 10.05 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 7.531e-05/0.005979, allocations: 133.7 kB / 0.8426 GB, free: 9.914 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.005991, allocations: 4 kB / 0.8426 GB, free: 9.91 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.006091, allocations: 78.02 kB / 0.8427 GB, free: 9.832 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.006094, allocations: 7.938 kB / 0.8427 GB, free: 9.824 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.006097, allocations: 4 kB / 0.8427 GB, free: 9.82 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.0061, allocations: 0 / 0.8427 GB, free: 9.82 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.006298, allocations: 219.2 kB / 0.8429 GB, free: 9.582 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.006299, allocations: 0 / 0.8429 GB, free: 9.582 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.651e-05/0.006336, allocations: 8 kB / 0.8429 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.006337, allocations: 0 / 0.8429 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.006346, allocations: 7.922 kB / 0.8429 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.006347, allocations: 0 / 0.8429 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.006348, allocations: 0 / 0.8429 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.006455, allocations: 167.5 kB / 0.8431 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.763e-06/0.006462, allocations: 7.953 kB / 0.8431 GB, free: 9.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.006478, allocations: 11.94 kB / 0.8431 GB, free: 9.367 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.082e-05/0.006539, allocations: 7.984 kB / 0.8431 GB, free: 9.359 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.006567, allocations: 7.984 kB / 0.8431 GB, free: 9.352 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.006573, allocations: 0 / 0.8431 GB, free: 9.352 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.574e-05/0.006588, allocations: 12.86 kB / 0.8431 GB, free: 9.336 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6.1e-08/0.006588, allocations: 0 / 0.8431 GB, free: 9.336 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002046/0.006793, allocations: 19.98 kB / 0.8431 GB, free: 9.316 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 0.0001072/0.0069, allocations: 88.36 kB / 0.8432 GB, free: 9.219 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.53e-05/0.006995, allocations: 60.81 kB / 0.8433 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.006997, allocations: 3.938 kB / 0.8433 GB, free: 9.152 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.038e-05/0.007038, allocations: 24.84 kB / 0.8433 GB, free: 9.125 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.007204, allocations: 11.98 kB / 0.8433 GB, free: 9.113 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004022/0.007606, allocations: 165.1 kB / 0.8435 GB, free: 8.926 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.734e-05/0.007643, allocations: 55.36 kB / 0.8435 GB, free: 8.852 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.735e-05/0.007671, allocations: 16.73 kB / 0.8435 GB, free: 8.836 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.007726, allocations: 59.38 kB / 0.8436 GB, free: 8.777 MB / 0.8073 GB Notification: Performance of SimCode: time 4.51e-07/0.007727, allocations: 0 / 0.8436 GB, free: 8.777 MB / 0.8073 GB Notification: Performance of Templates: time 0.002948/0.01067, allocations: 1.126 MB / 0.8447 GB, free: 7.672 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 -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.41634465707466]