Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.267/1.267, allocations: 249.4 MB / 256.7 MB, free: 15.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 177.2 kB / 316 MB, free: 7.215 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.568/1.568, allocations: 205.1 MB / 0.5667 GB, free: 23.58 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009489/0.0009487, allocations: 81.34 kB / 0.671 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 1.27e-05/1.289e-05, allocations: 4 kB / 0.7807 GB, free: 384 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6492/0.6492, allocations: 106.3 MB / 0.8846 GB, free: 76.36 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1651/0.8144, allocations: 130.8 MB / 1.012 GB, free: 9.375 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.8147, allocations: 71.95 kB / 1.012 GB, free: 9.305 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.003811/0.8185, allocations: 1.048 MB / 1.013 GB, free: 8.258 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 8.627e-06/0.8185, allocations: 0 / 1.013 GB, free: 8.258 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003436/0.8189, allocations: 366.2 kB / 1.014 GB, free: 7.855 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.8189, allocations: 12.03 kB / 1.014 GB, free: 7.844 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.427e-05/0.819, allocations: 7.844 kB / 1.014 GB, free: 7.836 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.8192, allocations: 187 kB / 1.014 GB, free: 7.613 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.8192, allocations: 8 kB / 1.014 GB, free: 7.605 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.8193, allocations: 7.938 kB / 1.014 GB, free: 7.598 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.748e-05/0.8193, allocations: 20 kB / 1.014 GB, free: 7.578 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.816e-05/0.8194, allocations: 41.69 kB / 1.014 GB, free: 7.531 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.8194, allocations: 0 / 1.014 GB, free: 7.531 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.071e-06/0.8194, allocations: 0 / 1.014 GB, free: 7.531 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-06/0.8194, allocations: 0 / 1.014 GB, free: 7.531 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003416/0.8198, allocations: 273.4 kB / 1.014 GB, free: 7.227 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 7.832e-05/0.8199, allocations: 42.5 kB / 1.014 GB, free: 7.176 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.059e-05/0.8199, allocations: 12.86 kB / 1.014 GB, free: 7.16 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.8199, allocations: 0 / 1.014 GB, free: 7.16 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.82, allocations: 42.64 kB / 1.014 GB, free: 7.109 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.82, allocations: 0 / 1.014 GB, free: 7.109 MB / 0.6667 GB Notification: Performance of matching and sorting (n=4): time 0.0001588/0.8201, allocations: 45.61 kB / 1.014 GB, free: 7.059 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.8202, allocations: 55.41 kB / 1.014 GB, free: 6.992 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.338e-05/0.8203, allocations: 105 kB / 1.015 GB, free: 6.883 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.8203, allocations: 25.7 kB / 1.015 GB, free: 6.852 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 3.63e-05/0.8203, allocations: 80.14 kB / 1.015 GB, free: 6.77 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.8204, allocations: 27.73 kB / 1.015 GB, free: 6.742 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/0.8204, allocations: 0 / 1.015 GB, free: 6.742 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.8205, allocations: 314.8 kB / 1.015 GB, free: 6.426 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.233e-05/0.8205, allocations: 11.94 kB / 1.015 GB, free: 6.414 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.905e-05/0.8205, allocations: 12 kB / 1.015 GB, free: 6.402 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.551e-05/0.8206, allocations: 11.98 kB / 1.015 GB, free: 6.391 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-07/0.8206, allocations: 0 / 1.015 GB, free: 6.391 MB / 0.6667 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.847e-05/0.8207, allocations: 53.7 kB / 1.015 GB, free: 6.332 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.8207, allocations: 4.375 kB / 1.015 GB, free: 6.328 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.8207, allocations: 3.906 kB / 1.015 GB, free: 6.324 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.646e-06/0.8207, allocations: 8 kB / 1.015 GB, free: 6.316 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.8208, allocations: 15.98 kB / 1.015 GB, free: 6.301 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.8208, allocations: 7.875 kB / 1.015 GB, free: 6.293 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.776e-05/0.8209, allocations: 11.98 kB / 1.015 GB, free: 6.281 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.8209, allocations: 0 / 1.015 GB, free: 6.281 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.307e-05/0.821, allocations: 107.1 kB / 1.015 GB, free: 6.172 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/0.821, allocations: 11.84 kB / 1.015 GB, free: 6.16 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.8212, allocations: 57.67 kB / 1.015 GB, free: 6.094 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.8212, allocations: 4 kB / 1.015 GB, free: 6.09 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.8212, allocations: 0 / 1.015 GB, free: 6.09 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.8212, allocations: 0 / 1.015 GB, free: 6.09 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.8213, allocations: 150.1 kB / 1.015 GB, free: 5.906 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.8213, allocations: 0 / 1.015 GB, free: 5.906 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.8214, allocations: 20.17 kB / 1.015 GB, free: 5.887 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.8215, allocations: 0 / 1.015 GB, free: 5.887 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.8215, allocations: 4 kB / 1.015 GB, free: 5.883 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.8215, allocations: 0 / 1.015 GB, free: 5.883 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.8215, allocations: 0 / 1.015 GB, free: 5.883 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000161/0.8216, allocations: 169.9 kB / 1.016 GB, free: 5.703 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 3.912e-05/0.8217, allocations: 89.08 kB / 1.016 GB, free: 5.598 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.8217, allocations: 0 / 1.016 GB, free: 5.598 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.715e-05/0.8218, allocations: 12.03 kB / 1.016 GB, free: 5.586 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.793e-05/0.8218, allocations: 0 / 1.016 GB, free: 5.586 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.8218, allocations: 0 / 1.016 GB, free: 5.586 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.599e-05/0.8219, allocations: 91.27 kB / 1.016 GB, free: 5.496 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002004/0.8221, allocations: 8 kB / 1.016 GB, free: 5.488 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001461/0.8223, allocations: 107.2 kB / 1.016 GB, free: 5.375 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 7.203e-05/0.8223, allocations: 24 kB / 1.016 GB, free: 5.352 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 9.12e-07/0.8223, allocations: 3.938 kB / 1.016 GB, free: 5.348 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 2.562e-05/0.8224, allocations: 15.98 kB / 1.016 GB, free: 5.332 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.8225, allocations: 7.906 kB / 1.016 GB, free: 5.324 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002538/0.8228, allocations: 84.59 kB / 1.016 GB, free: 5.215 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.8231, allocations: 0.7032 MB / 1.017 GB, free: 4.488 MB / 0.6667 GB Notification: Performance of SimCode: time 2.01e-07/0.8231, allocations: 0 / 1.017 GB, free: 4.488 MB / 0.6667 GB Notification: Performance of Templates: time 0.002201/0.8253, allocations: 0.5751 MB / 1.017 GB, free: 3.918 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=10.000000 File[5002]=2.000000 Error: Could not read variable intWitRes.u in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat. Warning: Get data of variable intWitRes.u from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat failed! Error: Could not read variable der2.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat. Warning: Get data of variable der2.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat failed! " Variables in the reference:time,der1.y,intWitRes.u,der2.y,der1.T Variables in the result:der1.T,der1.k,der1.x_start,der1.y,der1.y_start,der1.zeroGain,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,time