Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001277/0.001277, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.0009924/0.0009924, allocations: 185 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.9242/0.9242, allocations: 177.1 MB / 204.5 MB, free: 5.523 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.791/1.791, allocations: 359 MB / 0.6055 GB, free: 10.88 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.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_11_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_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.527e-06/3.527e-06, allocations: 0 / 0.7876 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.797e-05/3.15e-05, allocations: 2.312 kB / 0.7876 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.00246/0.002491, allocations: 1.031 MB / 0.7886 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.004003, allocations: 1.05 MB / 0.7897 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.004147, allocations: 4.938 kB / 0.7897 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.004295, allocations: 15.75 kB / 0.7897 GB, free: 10 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.728e-05/0.004372, allocations: 33.12 kB / 0.7897 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.004704, allocations: 71.78 kB / 0.7898 GB, free: 9.902 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.004902, allocations: 180.1 kB / 0.79 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.005071, allocations: 57.58 kB / 0.79 GB, free: 9.668 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.005239, allocations: 103.8 kB / 0.7901 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.005342, allocations: 61.34 kB / 0.7902 GB, free: 9.508 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.005373, allocations: 19.94 kB / 0.7902 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.854e-05/0.005442, allocations: 20 kB / 0.7902 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.77e-05/0.005479, allocations: 35.89 kB / 0.7902 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.118e-05/0.00553, allocations: 47.84 kB / 0.7903 GB, free: 9.387 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.005748, allocations: 136.7 kB / 0.7904 GB, free: 9.254 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.00575, allocations: 0 / 0.7904 GB, free: 9.254 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.222e-06/0.005752, allocations: 4 kB / 0.7904 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.005756, allocations: 2 kB / 0.7904 GB, free: 9.25 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0006343/0.00639, allocations: 0.5034 MB / 0.7909 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.006441, allocations: 12.03 kB / 0.7909 GB, free: 8.691 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.006573, allocations: 35 kB / 0.791 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.006775, allocations: 168.9 kB / 0.7911 GB, free: 8.469 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.006798, allocations: 12.38 kB / 0.7911 GB, free: 8.457 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.51e-05/0.006833, allocations: 20.31 kB / 0.7912 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.007074, allocations: 152.4 kB / 0.7913 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.007084, allocations: 0.7188 kB / 0.7913 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.007101, allocations: 9.719 kB / 0.7913 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.007109, allocations: 4 kB / 0.7913 GB, free: 8.262 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.765e-05/0.007186, allocations: 41.39 kB / 0.7914 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007483/0.007935, allocations: 453 kB / 0.7918 GB, free: 7.754 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/0.008165, allocations: 92.42 kB / 0.7919 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.783e-05/0.008223, allocations: 39.67 kB / 0.7919 GB, free: 7.609 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.008254, allocations: 5.375 kB / 0.7919 GB, free: 7.605 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/0.008396, allocations: 122.6 kB / 0.792 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=19): time 2.215e-06/0.008398, allocations: 1.75 kB / 0.792 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19): time 0.000254/0.008652, allocations: 142.7 kB / 0.7922 GB, free: 7.32 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.008679, allocations: 51.41 kB / 0.7922 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.008799, allocations: 199.3 kB / 0.7924 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.008824, allocations: 29.7 kB / 0.7924 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.008908, allocations: 172.1 kB / 0.7926 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.009049, allocations: 71.36 kB / 0.7927 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.781e-05/0.009117, allocations: 51.91 kB / 0.7927 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.009254, allocations: 0.4923 MB / 0.7932 GB, free: 6.207 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.202e-05/0.009346, allocations: 33.84 kB / 0.7932 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.789e-05/0.009414, allocations: 57.36 kB / 0.7933 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.009527, allocations: 77.55 kB / 0.7934 GB, free: 6.031 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.009531, allocations: 6.422 kB / 0.7934 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002062/0.009737, allocations: 134.6 kB / 0.7935 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.009753, allocations: 4.625 kB / 0.7935 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.009759, allocations: 0 / 0.7935 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.009772, allocations: 4 kB / 0.7935 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.009913, allocations: 39.92 kB / 0.7935 GB, free: 5.844 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.009918, allocations: 0.7188 kB / 0.7935 GB, free: 5.844 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.12e-05/0.009989, allocations: 24.41 kB / 0.7936 GB, free: 5.82 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.01, allocations: 4 kB / 0.7936 GB, free: 5.816 MB / 0.7448 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 0.0001043/0.0101, allocations: 166.2 kB / 0.7937 GB, free: 5.645 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.119e-05/0.01014, allocations: 15.89 kB / 0.7937 GB, free: 5.629 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.01036, allocations: 136.8 kB / 0.7939 GB, free: 5.488 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.01036, allocations: 4 kB / 0.7939 GB, free: 5.484 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.01036, allocations: 0.9062 kB / 0.7939 GB, free: 5.484 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.01037, allocations: 4 kB / 0.7939 GB, free: 5.48 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000537/0.01091, allocations: 0.49 MB / 0.7944 GB, free: 4.934 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.01091, allocations: 4 kB / 0.7944 GB, free: 4.93 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.01103, allocations: 36.7 kB / 0.7944 GB, free: 4.895 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.01104, allocations: 4 kB / 0.7944 GB, free: 4.891 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.01105, allocations: 4.875 kB / 0.7944 GB, free: 4.887 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01106, allocations: 0 / 0.7944 GB, free: 4.887 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.01106, allocations: 5.562 kB / 0.7944 GB, free: 4.883 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.01138, allocations: 364 kB / 0.7948 GB, free: 4.484 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.204e-05/0.0114, allocations: 19.83 kB / 0.7948 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.01142, allocations: 9.172 kB / 0.7948 GB, free: 4.457 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-05/0.01152, allocations: 11.98 kB / 0.7948 GB, free: 4.445 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.01158, allocations: 27.89 kB / 0.7948 GB, free: 4.418 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.01159, allocations: 11.22 kB / 0.7948 GB, free: 4.41 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.075e-05/0.01165, allocations: 146.1 kB / 0.795 GB, free: 4.27 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01165, allocations: 0 / 0.795 GB, free: 4.27 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002876/0.01194, allocations: 32 kB / 0.795 GB, free: 4.238 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.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 0.0001396/0.01208, allocations: 103.2 kB / 0.7951 GB, free: 4.125 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001949/0.01228, allocations: 105.5 kB / 0.7952 GB, free: 4.02 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01228, allocations: 0 / 0.7952 GB, free: 4.02 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 7.415e-05/0.01235, allocations: 57.25 kB / 0.7953 GB, free: 3.961 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.01268, allocations: 33.78 kB / 0.7953 GB, free: 3.93 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00077/0.01345, allocations: 385.4 kB / 0.7957 GB, free: 3.504 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.486e-05/0.01352, allocations: 76.06 kB / 0.7957 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.593e-05/0.01358, allocations: 16.95 kB / 0.7958 GB, free: 3.395 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.01371, allocations: 98.19 kB / 0.7958 GB, free: 3.297 MB / 0.7448 GB Notification: Performance of SimCode: time 5.61e-07/0.01371, allocations: 0 / 0.7958 GB, free: 3.297 MB / 0.7448 GB Notification: Performance of Templates: time 0.004927/0.01864, allocations: 1.909 MB / 0.7977 GB, free: 1.426 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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: 4.91042096959427]