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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001312/0.001312, allocations: 111.9 kB / 16.41 MB, free: 6.492 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.001321/0.001321, allocations: 183 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.509/2.509, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001218, allocations: 63.91 kB / 1.055 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6763/0.6775, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002296/0.6799, allocations: 1.066 MB / 1.21 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.6812, allocations: 0.9908 MB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.6813, allocations: 4 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.6815, allocations: 19.73 kB / 1.211 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.727e-05/0.6815, allocations: 19.81 kB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.6818, allocations: 75.84 kB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.6821, allocations: 176 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.6822, allocations: 88 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.6824, allocations: 63.78 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.6825, allocations: 83.59 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.447e-05/0.6825, allocations: 20 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.432e-05/0.6826, allocations: 16 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.6826, allocations: 43.84 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.863e-05/0.6827, allocations: 75.53 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.6829, allocations: 183 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.6829, allocations: 3.938 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6829, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.6829, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 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.000807/0.6838, allocations: 476.8 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.6838, allocations: 12.02 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.535e-05/0.6839, allocations: 20.75 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.6842, allocations: 224.5 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.6842, allocations: 12.38 kB / 1.212 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.6842, allocations: 24.31 kB / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.6846, allocations: 153.6 kB / 1.212 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.6846, allocations: 0 / 1.212 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.6846, allocations: 4 kB / 1.212 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.6846, allocations: 11.98 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.6849, allocations: 103.9 kB / 1.212 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.6859, allocations: 0.5351 MB / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.6863, allocations: 140.8 kB / 1.213 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.6865, allocations: 88.77 kB / 1.213 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.6865, allocations: 3.984 kB / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.6867, allocations: 128.4 kB / 1.213 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=19): time 2.855e-06/0.6867, allocations: 0 / 1.213 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.0005255/0.6873, allocations: 223.5 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/0.6873, allocations: 59.41 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.6874, allocations: 154.2 kB / 1.214 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.6875, allocations: 33.7 kB / 1.214 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.163e-05/0.6875, allocations: 116.4 kB / 1.214 GB, free: 8.016 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.193e-05/0.6876, allocations: 63.09 kB / 1.214 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.957e-05/0.6877, allocations: 41.7 kB / 1.214 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.531e-05/0.6878, allocations: 326.8 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.688, allocations: 67.95 kB / 1.214 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.6882, allocations: 85.67 kB / 1.214 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.6885, allocations: 156 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.6885, allocations: 0 / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004581/0.689, allocations: 217.3 kB / 1.215 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.689, allocations: 8 kB / 1.215 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.689, allocations: 0 / 1.215 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.689, allocations: 0 / 1.215 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.6892, allocations: 39.97 kB / 1.215 GB, free: 7 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.6892, allocations: 0 / 1.215 GB, free: 7 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.6894, allocations: 31.86 kB / 1.215 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.6894, allocations: 4 kB / 1.215 GB, free: 6.965 MB / 0.9356 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 0.000103/0.6895, allocations: 133.7 kB / 1.215 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.6895, allocations: 7.906 kB / 1.215 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003851/0.6899, allocations: 202.6 kB / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6899, allocations: 0 / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6899, allocations: 4 kB / 1.215 GB, free: 6.605 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.69, allocations: 3.938 kB / 1.215 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007637/0.6907, allocations: 0.5851 MB / 1.216 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.6907, allocations: 0 / 1.216 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.6909, allocations: 35.97 kB / 1.216 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.6909, allocations: 7.938 kB / 1.216 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.691, allocations: 4 kB / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.691, allocations: 7.938 kB / 1.216 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.691, allocations: 4 kB / 1.216 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005757/0.6916, allocations: 373.5 kB / 1.216 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.446e-05/0.6916, allocations: 108.9 kB / 1.216 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.6917, allocations: 4 kB / 1.216 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.6918, allocations: 19.92 kB / 1.216 GB, free: 5.34 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.054e-05/0.6919, allocations: 28.05 kB / 1.216 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.6919, allocations: 8 kB / 1.216 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.831e-05/0.692, allocations: 118.8 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.692, allocations: 0 / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000267/0.6923, allocations: 39.84 kB / 1.216 GB, free: 5.152 MB / 0.9356 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 (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.0001313/0.6924, allocations: 115.2 kB / 1.216 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004064/0.6928, allocations: 163.8 kB / 1.217 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6928, allocations: 0 / 1.217 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.693, allocations: 88.28 kB / 1.217 GB, free: 4.785 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.6933, allocations: 27.92 kB / 1.217 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005939/0.6939, allocations: 404.5 kB / 1.217 GB, free: 4.312 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.6942, allocations: 0.7282 MB / 1.218 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.149e-05/0.6943, allocations: 19.44 kB / 1.218 GB, free: 3.535 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.6943, allocations: 0 / 1.218 GB, free: 3.535 MB / 0.9356 GB Notification: Performance of Templates: time 0.00337/0.6976, allocations: 1.963 MB / 1.22 GB, free: 1.574 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches