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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001716/0.001716, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 197 kB / 16.53 MB, free: 6.664 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.506/1.506, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.526/2.526, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.91 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9537/0.9552, allocations: 140.3 MB / 0.9496 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002519/0.9577, allocations: 1.05 MB / 0.9506 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.959, allocations: 0.9872 MB / 0.9516 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.9591, allocations: 6.531 kB / 0.9516 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.9593, allocations: 20.98 kB / 0.9516 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.612e-05/0.9593, allocations: 21.12 kB / 0.9516 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.9596, allocations: 63.44 kB / 0.9517 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.9598, allocations: 174.7 kB / 0.9519 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.96, allocations: 75.92 kB / 0.9519 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.939e-05/0.9601, allocations: 65.61 kB / 0.952 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.9602, allocations: 75.59 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.9603, allocations: 15.5 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.84e-05/0.9603, allocations: 20.06 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.167e-05/0.9604, allocations: 38.14 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.321e-05/0.9604, allocations: 73.44 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.9606, allocations: 174.8 kB / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.9606, allocations: 0 / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.966e-06/0.9607, allocations: 1.312 kB / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.9607, allocations: 3.984 kB / 0.9524 GB, free: 7.012 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.0007799/0.9614, allocations: 472.3 kB / 0.9528 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.9615, allocations: 9.594 kB / 0.9528 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.611e-05/0.9616, allocations: 17.84 kB / 0.9529 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.9618, allocations: 218.9 kB / 0.9531 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.9618, allocations: 10.81 kB / 0.9531 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.823e-05/0.9619, allocations: 14.66 kB / 0.9531 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004003/0.9623, allocations: 143.4 kB / 0.9532 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.9623, allocations: 192 / 0.9532 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.9623, allocations: 13.12 kB / 0.9532 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.9624, allocations: 11.83 kB / 0.9533 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002898/0.9627, allocations: 104.6 kB / 0.9534 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.9637, allocations: 0.5278 MB / 0.9539 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.9641, allocations: 145.7 kB / 0.954 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.9643, allocations: 79.48 kB / 0.9541 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.9643, allocations: 6.109 kB / 0.9541 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.9646, allocations: 121.4 kB / 0.9542 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.372e-06/0.9646, allocations: 0 / 0.9542 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0006172/0.9653, allocations: 231.7 kB / 0.9544 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.9653, allocations: 52.84 kB / 0.9545 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.9654, allocations: 158.2 kB / 0.9546 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.9655, allocations: 30.98 kB / 0.9547 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.9655, allocations: 110.4 kB / 0.9548 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.9656, allocations: 71.36 kB / 0.9548 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.9656, allocations: 46.61 kB / 0.9549 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.5e-05/0.9657, allocations: 322.7 kB / 0.9552 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.9659, allocations: 66.39 kB / 0.9552 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.9662, allocations: 86.95 kB / 0.9553 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.9665, allocations: 150.9 kB / 0.9555 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.9665, allocations: 0 / 0.9555 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004397/0.967, allocations: 212.2 kB / 0.9557 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.967, allocations: 5 kB / 0.9557 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.967, allocations: 0 / 0.9557 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.967, allocations: 7.844 kB / 0.9557 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.9672, allocations: 39.08 kB / 0.9557 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.9672, allocations: 2.094 kB / 0.9557 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.9674, allocations: 30.44 kB / 0.9558 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.9674, allocations: 4 kB / 0.9558 GB, free: 4.254 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,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 8.97e-05/0.9675, allocations: 129.2 kB / 0.9559 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.9675, allocations: 14.62 kB / 0.9559 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003865/0.9679, allocations: 198 kB / 0.9561 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.9679, allocations: 5.328 kB / 0.9561 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.9679, allocations: 1.188 kB / 0.9561 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.968, allocations: 0 / 0.9561 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007128/0.9687, allocations: 0.5922 MB / 0.9567 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.9687, allocations: 2.281 kB / 0.9567 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.9689, allocations: 39.45 kB / 0.9567 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.9689, allocations: 6.438 kB / 0.9567 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.9689, allocations: 6.625 kB / 0.9567 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.9689, allocations: 14.64 kB / 0.9567 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.9689, allocations: 6.062 kB / 0.9567 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/0.9695, allocations: 375.6 kB / 0.9571 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.9696, allocations: 88.3 kB / 0.9572 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/0.9696, allocations: 14.78 kB / 0.9572 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.9698, allocations: 13.05 kB / 0.9572 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.888e-05/0.9698, allocations: 24.2 kB / 0.9572 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.9699, allocations: 14.73 kB / 0.9572 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.205e-05/0.97, allocations: 118.7 kB / 0.9574 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.97, allocations: 0 / 0.9574 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002801/0.9702, allocations: 39.84 kB / 0.9574 GB, free: 2.898 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 (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.0001896/0.9704, allocations: 108.5 kB / 0.9575 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005018/0.971, allocations: 167.5 kB / 0.9577 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.971, allocations: 1.375 kB / 0.9577 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.9712, allocations: 89.33 kB / 0.9577 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003727/0.9716, allocations: 28.81 kB / 0.9578 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007788/0.9723, allocations: 366.9 kB / 0.9581 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.9726, allocations: 0.7234 MB / 0.9588 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.011e-05/0.9727, allocations: 21.56 kB / 0.9589 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.762e-05/0.9727, allocations: 21.97 kB / 0.9589 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of SimCode: time 1.9e-07/0.9727, allocations: 0 / 0.9589 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of Templates: time 0.004935/0.9777, allocations: 1.748 MB / 0.9606 GB, free: 0.7734 MB / 0.7169 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