Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.723/1.723, allocations: 390.4 MB / 397.7 MB, free: 11.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009166/0.0009166, allocations: 188.2 kB / 490.8 MB, free: 1.938 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.074/1.074, allocations: 221.4 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008176/0.0008175, allocations: 95.3 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.206e-06/8.286e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1759/0.176, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4683/0.6443, allocations: 149.9 MB / 1.358 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001658/0.6445, allocations: 70.59 kB / 1.358 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.008567/0.6531, allocations: 3.259 MB / 1.361 GB, free: 17.29 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.6531, allocations: 3.594 kB / 1.361 GB, free: 17.29 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000559/0.6537, allocations: 461.1 kB / 1.362 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.6537, allocations: 7.562 kB / 1.362 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.6537, allocations: 25.12 kB / 1.362 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.654, allocations: 227.7 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.654, allocations: 6.406 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.6541, allocations: 9.031 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001491/0.6542, allocations: 71.91 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.6544, allocations: 119.1 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.6544, allocations: 7.922 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.6544, allocations: 0 / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.6544, allocations: 3.531 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.6551, allocations: 493.4 kB / 1.363 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.6553, allocations: 106.3 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.988e-05/0.6554, allocations: 67.83 kB / 1.363 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.6555, allocations: 3.922 kB / 1.363 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001077/0.6556, allocations: 102.4 kB / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 1.152e-06/0.6556, allocations: 1.375 kB / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0002184/0.6558, allocations: 129.2 kB / 1.363 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.399e-05/0.6558, allocations: 57.48 kB / 1.363 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.234e-05/0.6559, allocations: 128.2 kB / 1.363 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.6559, allocations: 34.64 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.656, allocations: 108.9 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.476e-05/0.656, allocations: 63.61 kB / 1.363 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.656, allocations: 0 / 1.363 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.315e-05/0.6561, allocations: 327.3 kB / 1.364 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.247e-05/0.6562, allocations: 46.44 kB / 1.364 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.035e-05/0.6563, allocations: 74.75 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.781e-05/0.6564, allocations: 58.31 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.6564, allocations: 0 / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002156/0.6566, allocations: 165.8 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/0.6566, allocations: 8.562 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.6566, allocations: 0 / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.6566, allocations: 3.531 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.6569, allocations: 45.59 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.6569, allocations: 4 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.657, allocations: 30.05 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.657, allocations: 6.859 kB / 1.364 GB, free: 31.48 MB / 0.8386 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,$PRE.lesThr.lesHys.y,lesThr.lesHys.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.337e-05/0.6571, allocations: 106.7 kB / 1.364 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.939e-05/0.6571, allocations: 18.56 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002234/0.6574, allocations: 145 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.6574, allocations: 5.906 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.6574, allocations: 1.188 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.6574, allocations: 0 / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004945/0.6579, allocations: 0.5036 MB / 1.365 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.6579, allocations: 1.156 kB / 1.365 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.6581, allocations: 47.73 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.6581, allocations: 2.438 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.6581, allocations: 5.594 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.6581, allocations: 6.062 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6581, allocations: 2.531 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003088/0.6584, allocations: 400.3 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.318e-05/0.6585, allocations: 94.8 kB / 1.365 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.6585, allocations: 3.156 kB / 1.365 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.6587, allocations: 27.08 kB / 1.365 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.6587, allocations: 28.17 kB / 1.365 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.6588, allocations: 7.875 kB / 1.365 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.234e-05/0.6588, allocations: 104.2 kB / 1.366 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002362/0.659, allocations: 30.31 kB / 1.366 GB, free: 30.48 MB / 0.8386 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001155/0.6592, allocations: 109.1 kB / 1.366 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001908/0.6594, allocations: 126.6 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.6594, allocations: 0 / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.745e-05/0.6595, allocations: 75.17 kB / 1.366 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.6597, allocations: 12.59 kB / 1.366 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003953/0.6601, allocations: 265.8 kB / 1.366 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.6604, allocations: 0.7483 MB / 1.367 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/0.6604, allocations: 0 / 1.367 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of Templates: time 0.003445/0.6639, allocations: 1.588 MB / 1.368 GB, free: 29.37 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches