Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001834/0.001834, allocations: 110.3 kB / 16.41 MB, free: 6.477 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.002166/0.002166, allocations: 183 kB / 17.34 MB, free: 5.754 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.47/1.47, 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 10.1.1-maint.10.0.x/package.mo): time 2.511/2.511, allocations: 437 MB / 0.7112 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 71.89 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8557/0.8573, allocations: 151.6 MB / 1.167 GB, free: 3.914 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002275/0.8596, allocations: 1.081 MB / 1.168 GB, free: 2.84 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.861, allocations: 0.9986 MB / 1.169 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.8611, allocations: 4 kB / 1.169 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.8612, allocations: 19.73 kB / 1.169 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.329e-05/0.8613, allocations: 19.75 kB / 1.169 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.8616, allocations: 75.84 kB / 1.17 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.8618, allocations: 180 kB / 1.17 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.862, allocations: 76.05 kB / 1.17 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.8621, allocations: 63.78 kB / 1.17 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.8622, allocations: 91.59 kB / 1.17 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.8623, allocations: 16 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.264e-05/0.8623, allocations: 16 kB / 1.17 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.691e-05/0.8623, allocations: 31.91 kB / 1.17 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.505e-05/0.8624, allocations: 79.53 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002168/0.8626, allocations: 183 kB / 1.17 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8627, allocations: 0 / 1.17 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.352e-06/0.8627, allocations: 0 / 1.17 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.8627, allocations: 0 / 1.17 GB, free: 0.9844 MB / 0.8887 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.0007714/0.8634, allocations: 480.8 kB / 1.171 GB, free: 476 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.8635, allocations: 15.97 kB / 1.171 GB, free: 460 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.774e-05/0.8636, allocations: 16.75 kB / 1.171 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.8638, allocations: 230 kB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.8639, allocations: 8.375 kB / 1.171 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.8639, allocations: 16.38 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.8642, allocations: 167.3 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.8643, allocations: 0 / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.8643, allocations: 8 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.8643, allocations: 7.984 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.8646, allocations: 99.94 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.8656, allocations: 0.5389 MB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.866, allocations: 146.7 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.8662, allocations: 80.77 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.8662, allocations: 11.97 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.8665, allocations: 121.4 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=19): time 1.943e-06/0.8665, allocations: 0 / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19): time 0.0005578/0.867, allocations: 229.4 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.8671, allocations: 55.41 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.8672, allocations: 156.4 kB / 1.173 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.8673, allocations: 29.7 kB / 1.173 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.269e-05/0.8673, allocations: 124.4 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.921e-05/0.8674, allocations: 59.11 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.181e-05/0.8675, allocations: 41.7 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.8676, allocations: 326.8 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.8678, allocations: 71.81 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.868, allocations: 88.11 kB / 1.173 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.8684, allocations: 158.8 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.8684, allocations: 0 / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004998/0.8689, allocations: 207.1 kB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.8689, allocations: 4 kB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.8689, allocations: 3.938 kB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.869, allocations: 4 kB / 1.174 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.8692, allocations: 43.91 kB / 1.174 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.8692, allocations: 4.031 kB / 1.174 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.8693, allocations: 27.83 kB / 1.174 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.8694, allocations: 4 kB / 1.174 GB, free: 13.23 MB / 0.9044 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.0001118/0.8695, allocations: 133.7 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.8695, allocations: 15.89 kB / 1.174 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004294/0.87, allocations: 188.8 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.87, allocations: 4 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.87, allocations: 0 / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.87, allocations: 3.984 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008376/0.8708, allocations: 0.5851 MB / 1.175 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.8708, allocations: 4 kB / 1.175 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.871, allocations: 35.91 kB / 1.175 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.871, allocations: 7.938 kB / 1.175 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.8711, allocations: 8 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.8711, allocations: 4 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8711, allocations: 0 / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005798/0.8717, allocations: 388.6 kB / 1.175 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.218e-05/0.8717, allocations: 92.86 kB / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.8718, allocations: 8 kB / 1.175 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.8719, allocations: 15.98 kB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.97e-05/0.872, allocations: 27.91 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.872, allocations: 4 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.099e-05/0.8721, allocations: 122.1 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8721, allocations: 7.938 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002899/0.8724, allocations: 35.84 kB / 1.175 GB, free: 11.42 MB / 0.9044 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.0001584/0.8726, allocations: 111.2 kB / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004388/0.873, allocations: 165.4 kB / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.873, allocations: 0 / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.8732, allocations: 93.28 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.8736, allocations: 22.33 kB / 1.176 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007028/0.8743, allocations: 408.7 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.8746, allocations: 0.7243 MB / 1.177 GB, free: 9.836 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/0.8747, allocations: 19.42 kB / 1.177 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.8747, allocations: 7.938 kB / 1.177 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of Templates: time 0.003686/0.8784, allocations: 1.957 MB / 1.179 GB, free: 7.848 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches