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.0008294/0.0008294, allocations: 76.5 kB / 19.93 MB, free: 4.621 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.0008128/0.0008128, allocations: 177.9 kB / 23.21 MB, free: 1.34 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.8626/0.8626, allocations: 177.1 MB / 203.5 MB, free: 5.723 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 1.713/1.713, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.883e-06/1.883e-06, allocations: 0 / 1.001 GB, free: 12.96 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.406e-05/2.594e-05, allocations: 4.953 kB / 1.001 GB, free: 12.95 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.001534/0.00156, allocations: 1.007 MB / 1.002 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001061/0.002621, allocations: 1.03 MB / 1.003 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.002723, allocations: 11.88 kB / 1.003 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.002845, allocations: 19.8 kB / 1.003 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.951e-05/0.002895, allocations: 19.75 kB / 1.003 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.003175, allocations: 83.77 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001576/0.003333, allocations: 172.1 kB / 1.003 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.003471, allocations: 60.45 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.003584, allocations: 103.8 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.706e-05/0.003661, allocations: 59.83 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.003685, allocations: 16 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.878e-05/0.003734, allocations: 20 kB / 1.003 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.138e-05/0.003765, allocations: 39.83 kB / 1.004 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.003809, allocations: 55.83 kB / 1.004 GB, free: 10.25 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002027/0.004011, allocations: 191.3 kB / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.004014, allocations: 4 kB / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.002e-06/0.004015, allocations: 0 / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.00402, allocations: 0 / 1.004 GB, free: 10.06 MB / 0.9636 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.0006139/0.004634, allocations: 426.3 kB / 1.004 GB, free: 9.605 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.00467, allocations: 9.344 kB / 1.004 GB, free: 9.598 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.19e-05/0.004762, allocations: 16.84 kB / 1.004 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.004995, allocations: 174 kB / 1.004 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.005015, allocations: 16.23 kB / 1.004 GB, free: 9.371 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.064e-05/0.005045, allocations: 24.33 kB / 1.004 GB, free: 9.348 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.00529, allocations: 169.4 kB / 1.005 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.0053, allocations: 192 / 1.005 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.00532, allocations: 12.11 kB / 1.005 GB, free: 9.16 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.005325, allocations: 4 kB / 1.005 GB, free: 9.156 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.005486, allocations: 107.9 kB / 1.005 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006576/0.006143, allocations: 439.8 kB / 1.005 GB, free: 8.59 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004632/0.006606, allocations: 130.8 kB / 1.005 GB, free: 8.453 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.006709, allocations: 84.67 kB / 1.005 GB, free: 8.367 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.006736, allocations: 11.98 kB / 1.005 GB, free: 8.355 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001637/0.0069, allocations: 139 kB / 1.005 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=19): time 1.412e-06/0.006901, allocations: 0 / 1.005 GB, free: 8.203 MB / 0.9636 GB Notification: Performance of matching and sorting (n=19): time 0.000354/0.007255, allocations: 227.6 kB / 1.006 GB, free: 7.977 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.007283, allocations: 55.41 kB / 1.006 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.44e-05/0.007368, allocations: 144.2 kB / 1.006 GB, free: 7.762 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.007388, allocations: 33.7 kB / 1.006 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.643e-05/0.007444, allocations: 128.4 kB / 1.006 GB, free: 7.594 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.007484, allocations: 67.38 kB / 1.006 GB, free: 7.527 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.733e-05/0.007531, allocations: 41.7 kB / 1.006 GB, free: 7.48 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.064e-05/0.007612, allocations: 326.8 kB / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.007725, allocations: 67.95 kB / 1.007 GB, free: 7.086 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.007842, allocations: 86.27 kB / 1.007 GB, free: 6.996 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001941/0.008037, allocations: 148 kB / 1.007 GB, free: 6.848 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.008038, allocations: 0 / 1.007 GB, free: 6.848 MB / 0.9636 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002763/0.008315, allocations: 209.4 kB / 1.007 GB, free: 6.637 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.008328, allocations: 5.562 kB / 1.007 GB, free: 6.633 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.008333, allocations: 0 / 1.007 GB, free: 6.633 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.008347, allocations: 4 kB / 1.007 GB, free: 6.629 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.008451, allocations: 51.88 kB / 1.007 GB, free: 6.578 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.008456, allocations: 0 / 1.007 GB, free: 6.578 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.517e-05/0.008521, allocations: 23.88 kB / 1.007 GB, free: 6.555 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.008532, allocations: 8 kB / 1.007 GB, free: 6.547 MB / 0.9636 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 7.804e-05/0.00861, allocations: 133.8 kB / 1.007 GB, free: 6.406 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.549e-05/0.008625, allocations: 15.95 kB / 1.007 GB, free: 6.391 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002533/0.008878, allocations: 194.6 kB / 1.007 GB, free: 6.195 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.008881, allocations: 4 kB / 1.007 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.008885, allocations: 3.984 kB / 1.007 GB, free: 6.188 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.008889, allocations: 0 / 1.007 GB, free: 6.188 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004861/0.009375, allocations: 0.5067 MB / 1.008 GB, free: 5.625 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.009377, allocations: 192 / 1.008 GB, free: 5.625 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.969e-05/0.009467, allocations: 39.92 kB / 1.008 GB, free: 5.586 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.009469, allocations: 0 / 1.008 GB, free: 5.586 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.009482, allocations: 8 kB / 1.008 GB, free: 5.578 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.009486, allocations: 7.984 kB / 1.008 GB, free: 5.57 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.009489, allocations: 3.938 kB / 1.008 GB, free: 5.566 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.009841, allocations: 375.2 kB / 1.008 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.736e-05/0.009858, allocations: 23.84 kB / 1.008 GB, free: 5.145 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.009876, allocations: 8 kB / 1.008 GB, free: 5.137 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.749e-05/0.009953, allocations: 23.95 kB / 1.008 GB, free: 5.113 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.009999, allocations: 19.97 kB / 1.008 GB, free: 5.094 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.01001, allocations: 8 kB / 1.008 GB, free: 5.086 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.784e-05/0.01006, allocations: 109.5 kB / 1.008 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.01006, allocations: 0 / 1.008 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001956/0.01025, allocations: 32 kB / 1.008 GB, free: 4.949 MB / 0.9636 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.0001032/0.01036, allocations: 111.1 kB / 1.009 GB, free: 4.828 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002572/0.01061, allocations: 161.8 kB / 1.009 GB, free: 4.672 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01062, allocations: 0 / 1.009 GB, free: 4.672 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.01072, allocations: 79.89 kB / 1.009 GB, free: 4.594 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.01095, allocations: 32.3 kB / 1.009 GB, free: 4.562 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004765/0.01143, allocations: 377 kB / 1.009 GB, free: 4.145 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.207e-05/0.0115, allocations: 112.3 kB / 1.009 GB, free: 4.004 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.974e-05/0.01155, allocations: 24.5 kB / 1.009 GB, free: 3.98 MB / 0.9636 GB Notification: Performance of SimCode: time 3.71e-07/0.01155, allocations: 4 kB / 1.009 GB, free: 3.977 MB / 0.9636 GB Notification: Performance of Templates: time 0.002472/0.01403, allocations: 1.967 MB / 1.011 GB, free: 2.012 MB / 0.9636 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.625662535429001]