Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009049/0.0009049, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001028/0.001028, allocations: 172.7 kB / 15.95 MB, free: 208 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.45/1.45, allocations: 223.3 MB / 240 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.628/2.628, allocations: 390.9 MB / 0.666 GB, free: 2.516 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004723/0.0004725, allocations: 12 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8592/0.8597, allocations: 142.4 MB / 0.9545 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.001327/0.8611, allocations: 0.7088 MB / 0.9552 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.8623, allocations: 0.9879 MB / 0.9561 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.8624, allocations: 2.438 kB / 0.9561 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.8625, allocations: 13.09 kB / 0.9561 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.688e-05/0.8626, allocations: 17.03 kB / 0.9562 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.8628, allocations: 47.2 kB / 0.9562 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.863, allocations: 153.1 kB / 0.9563 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.8632, allocations: 56.92 kB / 0.9564 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.862e-05/0.8632, allocations: 47.62 kB / 0.9564 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.199e-05/0.8633, allocations: 62.22 kB / 0.9565 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.8634, allocations: 5.281 kB / 0.9565 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.711e-05/0.8634, allocations: 6.125 kB / 0.9565 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.779e-05/0.8634, allocations: 29.53 kB / 0.9565 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.12e-05/0.8635, allocations: 45.08 kB / 0.9566 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.8636, allocations: 122.7 kB / 0.9567 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.8636, allocations: 0 / 0.9567 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.194e-06/0.8636, allocations: 0.9375 kB / 0.9567 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.8636, allocations: 0 / 0.9567 GB, free: 5.891 MB / 0.7169 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.0007281/0.8644, allocations: 454.5 kB / 0.9571 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.8644, allocations: 9.281 kB / 0.9571 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.696e-05/0.8645, allocations: 20.95 kB / 0.9572 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.8647, allocations: 221.6 kB / 0.9574 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.8648, allocations: 10.12 kB / 0.9574 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.8648, allocations: 14.84 kB / 0.9574 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.8651, allocations: 146.1 kB / 0.9575 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.8652, allocations: 0 / 0.9575 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.8652, allocations: 10.17 kB / 0.9575 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.8652, allocations: 3.625 kB / 0.9576 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.8655, allocations: 126 kB / 0.9577 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.8665, allocations: 0.5414 MB / 0.9582 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003705/0.8669, allocations: 137.4 kB / 0.9583 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.8671, allocations: 95.42 kB / 0.9584 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.8672, allocations: 6 kB / 0.9584 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.8675, allocations: 126.3 kB / 0.9585 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.573e-06/0.8675, allocations: 0 / 0.9585 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0005061/0.868, allocations: 240.1 kB / 0.9588 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.868, allocations: 54.16 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.8682, allocations: 155.8 kB / 0.959 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.8682, allocations: 36.45 kB / 0.959 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.8682, allocations: 109.9 kB / 0.9591 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.8683, allocations: 65.97 kB / 0.9592 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.666e-06/0.8683, allocations: 1.375 kB / 0.9592 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.901e-05/0.8684, allocations: 330.9 kB / 0.9595 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.8685, allocations: 66.47 kB / 0.9596 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.8688, allocations: 102.6 kB / 0.9597 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.8689, allocations: 71.61 kB / 0.9597 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.869, allocations: 1.375 kB / 0.9597 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004204/0.8694, allocations: 223.7 kB / 0.9599 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.8694, allocations: 12.12 kB / 0.96 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.8694, allocations: 5.406 kB / 0.96 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.8694, allocations: 1.594 kB / 0.96 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.8696, allocations: 40.61 kB / 0.96 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.8697, allocations: 1.469 kB / 0.96 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.8698, allocations: 33.97 kB / 0.96 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.8698, allocations: 7.625 kB / 0.96 GB, free: 3.215 MB / 0.7169 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 9.939e-05/0.8699, allocations: 125.2 kB / 0.9602 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.8699, allocations: 14.41 kB / 0.9602 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000404/0.8704, allocations: 206.4 kB / 0.9604 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.8704, allocations: 6.062 kB / 0.9604 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.8704, allocations: 4.672 kB / 0.9604 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.8704, allocations: 0 / 0.9604 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007759/0.8712, allocations: 0.603 MB / 0.961 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.8712, allocations: 5.719 kB / 0.961 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001841/0.8714, allocations: 32.7 kB / 0.961 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.07e-05/0.8714, allocations: 7.094 kB / 0.961 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.8714, allocations: 7.875 kB / 0.961 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.543e-06/0.8715, allocations: 2.344 kB / 0.961 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.535e-06/0.8715, allocations: 14.14 kB / 0.961 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005658/0.872, allocations: 386.7 kB / 0.9614 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.8721, allocations: 94.17 kB / 0.9615 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.8721, allocations: 8.047 kB / 0.9615 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.8723, allocations: 28.42 kB / 0.9615 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.8724, allocations: 26 kB / 0.9616 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.8724, allocations: 5.938 kB / 0.9616 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.99e-05/0.8725, allocations: 117.8 kB / 0.9617 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8725, allocations: 0 / 0.9617 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002893/0.8728, allocations: 31.97 kB / 0.9617 GB, free: 1.875 MB / 0.7169 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.0001823/0.873, allocations: 117.1 kB / 0.9618 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.8734, allocations: 167.9 kB / 0.962 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.8734, allocations: 4.062 kB / 0.962 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.8736, allocations: 93.58 kB / 0.9621 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003528/0.874, allocations: 27.12 kB / 0.9621 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006199/0.8746, allocations: 411.3 kB / 0.9625 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.8748, allocations: 0.718 MB / 0.9632 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.854e-05/0.8749, allocations: 18.58 kB / 0.9632 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.8749, allocations: 21.73 kB / 0.9632 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.8749, allocations: 3.938 kB / 0.9632 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of Templates: time 0.004295/0.8792, allocations: 1.487 MB / 0.9647 GB, free: 15.82 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches