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.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001306, allocations: 98.92 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 223.2 MB / 239.9 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.632/2.632, allocations: 436.5 MB / 0.7104 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003648, allocations: 12 kB / 0.8708 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8662/0.8666, allocations: 153.7 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.001607/0.8683, allocations: 0.7403 MB / 1.022 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.8697, allocations: 0.9832 MB / 1.023 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.8698, allocations: 4 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.05e-05/0.8698, allocations: 11.86 kB / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.87, allocations: 19.95 kB / 1.023 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.8702, allocations: 59.81 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.8704, allocations: 92.28 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.8706, allocations: 70.58 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.72e-05/0.8707, allocations: 47.78 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.625e-05/0.8708, allocations: 63.61 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.8708, allocations: 8 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.811e-05/0.8709, allocations: 4 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.919e-05/0.8709, allocations: 19.92 kB / 1.023 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.459e-05/0.8709, allocations: 49.64 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.8711, allocations: 129.6 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.8711, allocations: 0 / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.174e-06/0.8711, allocations: 0 / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.8711, allocations: 0 / 1.023 GB, free: 14.79 MB / 0.7794 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.0009687/0.8721, allocations: 466.7 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.8722, allocations: 11.98 kB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/0.8722, allocations: 19.81 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002986/0.8725, allocations: 224.4 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.8726, allocations: 8 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.377e-05/0.8726, allocations: 23.86 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.8729, allocations: 149.6 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.873, allocations: 0 / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.873, allocations: 7.938 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.873, allocations: 8 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002877/0.8733, allocations: 119.8 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.8744, allocations: 0.5508 MB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.8748, allocations: 138.7 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.886e-05/0.8749, allocations: 12.03 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.8751, allocations: 117 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 1.633e-06/0.8752, allocations: 0 / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.0005889/0.8758, allocations: 249.6 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.8758, allocations: 51.41 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.876, allocations: 160.4 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.876, allocations: 29.7 kB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.56e-05/0.8761, allocations: 124.4 kB / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.681e-05/0.8762, allocations: 67.08 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.002e-05/0.8762, allocations: 4 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.8763, allocations: 330.8 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.8765, allocations: 75.81 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.8767, allocations: 93.86 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.8769, allocations: 75.72 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.8769, allocations: 0 / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004695/0.8774, allocations: 227.4 kB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.8774, allocations: 4 kB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.8775, allocations: 0 / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.8775, allocations: 4 kB / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.8777, allocations: 43.91 kB / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.8777, allocations: 4.031 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.8778, allocations: 31.83 kB / 1.026 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.8779, allocations: 4 kB / 1.026 GB, free: 11.2 MB / 0.7794 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.0001164/0.878, allocations: 139.6 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.235e-05/0.878, allocations: 11.81 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004191/0.8784, allocations: 210.7 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.8785, allocations: 3.938 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.8785, allocations: 0 / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.8785, allocations: 4 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008387/0.8793, allocations: 0.589 MB / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.8793, allocations: 0 / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.8795, allocations: 39.91 kB / 1.027 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.8795, allocations: 4 kB / 1.027 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.8796, allocations: 8 kB / 1.027 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.8796, allocations: 8 kB / 1.027 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8796, allocations: 0 / 1.027 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006357/0.8802, allocations: 480.1 kB / 1.028 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.057e-05/0.8803, allocations: 96.86 kB / 1.028 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.8803, allocations: 8 kB / 1.028 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.8805, allocations: 20.02 kB / 1.028 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.8806, allocations: 19.97 kB / 1.028 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.8806, allocations: 8 kB / 1.028 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.837e-05/0.8807, allocations: 130.4 kB / 1.028 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8807, allocations: 0 / 1.028 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002738/0.881, allocations: 35.94 kB / 1.028 GB, free: 9.23 MB / 0.7794 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.0001738/0.8811, allocations: 113 kB / 1.028 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004309/0.8816, allocations: 171.8 kB / 1.028 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.8816, allocations: 4 kB / 1.028 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.8818, allocations: 83.91 kB / 1.028 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.8821, allocations: 28.36 kB / 1.028 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006186/0.8827, allocations: 423.3 kB / 1.029 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.8831, allocations: 0.7324 MB / 1.03 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.043e-05/0.8832, allocations: 17.41 kB / 1.03 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.668e-05/0.8833, allocations: 19.44 kB / 1.03 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.8833, allocations: 4 kB / 1.03 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.004037/0.8873, allocations: 1.484 MB / 1.031 GB, free: 6.098 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches