Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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.000947/0.000947, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009349/0.0009349, allocations: 177 kB / 23.36 MB, free: 1.129 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.9833/0.9833, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.384/2.384, allocations: 438.8 MB / 0.6827 GB, free: 13.62 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.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.8387 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.42e-05/1.56e-05, allocations: 6.25 kB / 0.8387 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.001501/0.001517, allocations: 1.029 MB / 0.8397 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.002646, allocations: 1.061 MB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.002749, allocations: 4 kB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.002874, allocations: 23.73 kB / 0.8407 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 5.582e-05/0.00293, allocations: 23.73 kB / 0.8407 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.0032, allocations: 75.78 kB / 0.8408 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.003345, allocations: 176.1 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.003477, allocations: 65.8 kB / 0.8411 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.003593, allocations: 103.8 kB / 0.8411 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 7.536e-05/0.003668, allocations: 55.8 kB / 0.8412 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.003692, allocations: 16 kB / 0.8412 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 4.475e-05/0.003736, allocations: 16 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 3.293e-05/0.003769, allocations: 43.89 kB / 0.8413 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 3.986e-05/0.003809, allocations: 55.83 kB / 0.8413 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.003969, allocations: 131.4 kB / 0.8415 GB, free: 11.28 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.003971, allocations: 3.938 kB / 0.8415 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.52e-07/0.003972, allocations: 4 kB / 0.8415 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.447e-06/0.003975, allocations: 0 / 0.8415 GB, free: 11.27 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0004574/0.004433, allocations: 364.2 kB / 0.8418 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.004464, allocations: 8.031 kB / 0.8418 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.246e-05/0.004556, allocations: 36.84 kB / 0.8419 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.00471, allocations: 158 kB / 0.842 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.004727, allocations: 8.375 kB / 0.842 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.575e-05/0.004752, allocations: 16.38 kB / 0.842 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.004919, allocations: 153.9 kB / 0.8422 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.004927, allocations: 192 / 0.8422 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.004939, allocations: 12.12 kB / 0.8422 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.004946, allocations: 4 kB / 0.8422 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.27e-05/0.004999, allocations: 32.44 kB / 0.8422 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004843/0.005483, allocations: 335.5 kB / 0.8425 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/0.005656, allocations: 82.45 kB / 0.8426 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.743e-05/0.005693, allocations: 32.86 kB / 0.8426 GB, free: 9.961 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.005714, allocations: 11.89 kB / 0.8427 GB, free: 9.949 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.432e-05/0.005809, allocations: 106.9 kB / 0.8428 GB, free: 9.828 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=19): time 1.222e-06/0.00581, allocations: 0 / 0.8428 GB, free: 9.828 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19): time 0.0001571/0.005967, allocations: 118.9 kB / 0.8429 GB, free: 9.707 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.005996, allocations: 63.33 kB / 0.8429 GB, free: 9.633 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.365e-05/0.00607, allocations: 144.7 kB / 0.8431 GB, free: 9.48 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.006088, allocations: 25.7 kB / 0.8431 GB, free: 9.449 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.311e-05/0.006132, allocations: 116.4 kB / 0.8432 GB, free: 9.332 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.972e-05/0.006171, allocations: 71.41 kB / 0.8433 GB, free: 9.262 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.431e-05/0.006216, allocations: 45.67 kB / 0.8433 GB, free: 9.211 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.674e-05/0.006302, allocations: 322.8 kB / 0.8436 GB, free: 8.887 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.006352, allocations: 19.98 kB / 0.8436 GB, free: 8.867 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.099e-05/0.006393, allocations: 45.14 kB / 0.8437 GB, free: 8.82 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.699e-05/0.00647, allocations: 83.66 kB / 0.8438 GB, free: 8.734 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.006473, allocations: 3.938 kB / 0.8438 GB, free: 8.73 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001103/0.006584, allocations: 103.5 kB / 0.8439 GB, free: 8.625 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.006596, allocations: 11.92 kB / 0.8439 GB, free: 8.613 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.006601, allocations: 4 kB / 0.8439 GB, free: 8.609 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.006614, allocations: 3.938 kB / 0.8439 GB, free: 8.605 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.426e-05/0.006708, allocations: 39.92 kB / 0.8439 GB, free: 8.566 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.875e-06/0.006711, allocations: 0 / 0.8439 GB, free: 8.566 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.576e-05/0.006757, allocations: 23.91 kB / 0.844 GB, free: 8.543 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.006765, allocations: 8 kB / 0.844 GB, free: 8.535 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.814e-05/0.006833, allocations: 121.8 kB / 0.8441 GB, free: 8.406 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.563e-05/0.006849, allocations: 15.98 kB / 0.8441 GB, free: 8.391 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.006969, allocations: 104.6 kB / 0.8442 GB, free: 8.285 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.006972, allocations: 7.938 kB / 0.8442 GB, free: 8.277 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.006973, allocations: 0 / 0.8442 GB, free: 8.277 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.006977, allocations: 3.984 kB / 0.8442 GB, free: 8.273 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003233/0.007301, allocations: 371.5 kB / 0.8446 GB, free: 7.867 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.007302, allocations: 0 / 0.8446 GB, free: 7.867 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.103e-05/0.007383, allocations: 39.91 kB / 0.8446 GB, free: 7.828 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.007386, allocations: 0 / 0.8446 GB, free: 7.828 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.007398, allocations: 8 kB / 0.8446 GB, free: 7.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.007401, allocations: 4 kB / 0.8446 GB, free: 7.816 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.007402, allocations: 0 / 0.8446 GB, free: 7.816 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/0.007596, allocations: 268.7 kB / 0.8449 GB, free: 7.52 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.579e-05/0.007611, allocations: 23.83 kB / 0.8449 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.007629, allocations: 8 kB / 0.8449 GB, free: 7.488 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.593e-05/0.007685, allocations: 8 kB / 0.8449 GB, free: 7.48 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.007732, allocations: 27.89 kB / 0.8449 GB, free: 7.453 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.007739, allocations: 4 kB / 0.8449 GB, free: 7.449 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.434e-05/0.007764, allocations: 35.2 kB / 0.845 GB, free: 7.414 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.007764, allocations: 0 / 0.845 GB, free: 7.414 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001561/0.00792, allocations: 35.95 kB / 0.845 GB, free: 7.379 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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 Backend phase and start with SimCode phase: time 9.053e-05/0.00801, allocations: 96.34 kB / 0.8451 GB, free: 7.273 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.008135, allocations: 88.69 kB / 0.8452 GB, free: 7.184 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.008138, allocations: 4 kB / 0.8452 GB, free: 7.18 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.888e-05/0.008186, allocations: 52.09 kB / 0.8452 GB, free: 7.129 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001663/0.008353, allocations: 32.58 kB / 0.8453 GB, free: 7.102 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005153/0.008868, allocations: 362.2 kB / 0.8456 GB, free: 6.707 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.406e-05/0.008912, allocations: 72.08 kB / 0.8457 GB, free: 6.613 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.692e-05/0.008959, allocations: 21.45 kB / 0.8457 GB, free: 6.594 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.342e-05/0.009042, allocations: 79.36 kB / 0.8458 GB, free: 6.516 MB / 0.8073 GB Notification: Performance of SimCode: time 7.71e-07/0.009043, allocations: 4 kB / 0.8458 GB, free: 6.512 MB / 0.8073 GB Notification: Performance of Templates: time 0.003506/0.01255, allocations: 1.832 MB / 0.8476 GB, free: 4.703 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.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.3512250343337655]