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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.327/2.327, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001159/0.001159, allocations: 184 kB / 0.4902 GB, free: 2.242 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.523/1.523, allocations: 223.2 MB / 0.7992 GB, free: 14.79 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.001034/0.001034, allocations: 104.2 kB / 0.9396 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004076/0.0004076, allocations: 13.88 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2836, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1783/0.4619, allocations: 150.7 MB / 1.376 GB, free: 2.918 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.4622, allocations: 75.95 kB / 1.376 GB, free: 2.844 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01021/0.4724, allocations: 3.595 MB / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.545e-06/0.4724, allocations: 0 / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.672e-05/0.4724, allocations: 4 kB / 1.38 GB, free: 15.24 MB / 0.8855 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.0007258/0.4732, allocations: 468.5 kB / 1.38 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.4732, allocations: 12.56 kB / 1.38 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.434e-05/0.4733, allocations: 27.66 kB / 1.38 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.4737, allocations: 227.2 kB / 1.381 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.4737, allocations: 12.28 kB / 1.381 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/0.4738, allocations: 16 kB / 1.381 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.4741, allocations: 151.8 kB / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.4741, allocations: 0 / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.4742, allocations: 8 kB / 1.381 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.4742, allocations: 3.953 kB / 1.381 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.4745, allocations: 120.8 kB / 1.381 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.4756, allocations: 0.5393 MB / 1.381 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.476, allocations: 150.6 kB / 1.382 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.4761, allocations: 0 / 1.382 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003415/0.4764, allocations: 132.1 kB / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=19): time 1.873e-06/0.4764, allocations: 0 / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19): time 0.000613/0.477, allocations: 243.5 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/0.4771, allocations: 63.34 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.4772, allocations: 134.1 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.4773, allocations: 29.7 kB / 1.382 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.942e-05/0.4774, allocations: 112.5 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.881e-05/0.4774, allocations: 71 kB / 1.382 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.737e-06/0.4775, allocations: 0 / 1.382 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001969/0.4777, allocations: 330.8 kB / 1.383 GB, free: 12.22 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.4779, allocations: 71.95 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.4781, allocations: 108.1 kB / 1.383 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.4783, allocations: 75.16 kB / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4784, allocations: 0 / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005217/0.4789, allocations: 224.1 kB / 1.383 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.4789, allocations: 4 kB / 1.383 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.4789, allocations: 0 / 1.383 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.479, allocations: 7.953 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.4792, allocations: 47.91 kB / 1.383 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.4792, allocations: 0 / 1.383 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.4794, allocations: 35.81 kB / 1.383 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.4794, allocations: 8 kB / 1.383 GB, free: 11.64 MB / 0.8855 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.4795, allocations: 125.8 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.255e-05/0.4796, allocations: 11.81 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004821/0.4801, allocations: 211.4 kB / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4801, allocations: 0 / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4801, allocations: 4 kB / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.4801, allocations: 0 / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008504/0.481, allocations: 0.5919 MB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.481, allocations: 4 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.4812, allocations: 39.91 kB / 1.384 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.4812, allocations: 7.953 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.4812, allocations: 8 kB / 1.384 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4812, allocations: 4 kB / 1.384 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4812, allocations: 4 kB / 1.384 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006503/0.4819, allocations: 468.3 kB / 1.385 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.471e-05/0.482, allocations: 100.9 kB / 1.385 GB, free: 9.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.482, allocations: 4 kB / 1.385 GB, free: 9.906 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.4822, allocations: 27.97 kB / 1.385 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.4822, allocations: 23.97 kB / 1.385 GB, free: 9.855 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.4823, allocations: 11.94 kB / 1.385 GB, free: 9.844 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.522e-05/0.4823, allocations: 121.6 kB / 1.385 GB, free: 9.727 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4823, allocations: 4 kB / 1.385 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002663/0.4826, allocations: 32 kB / 1.385 GB, free: 9.691 MB / 0.8855 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 (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.0001686/0.4828, allocations: 112 kB / 1.385 GB, free: 9.574 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004272/0.4832, allocations: 171.8 kB / 1.385 GB, free: 9.406 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4832, allocations: 3.938 kB / 1.385 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.4834, allocations: 83.84 kB / 1.385 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.4837, allocations: 33.56 kB / 1.385 GB, free: 9.289 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006027/0.4843, allocations: 407.6 kB / 1.386 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.4846, allocations: 0.7283 MB / 1.386 GB, free: 8.09 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.575e-05/0.4847, allocations: 13.42 kB / 1.386 GB, free: 8.074 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/0.4847, allocations: 23.42 kB / 1.387 GB, free: 8.051 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.4847, allocations: 0 / 1.387 GB, free: 8.051 MB / 0.8855 GB Notification: Performance of Templates: time 0.004144/0.4889, allocations: 1.497 MB / 1.388 GB, free: 6.562 MB / 0.8855 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