Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Sqrt,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sqrt1.u|sqrt1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sqrt1.u|sqrt1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006715/0.006715, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001464/0.001464, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.038/3.038, allocations: 472.6 MB / 0.7453 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 67.91 kB / 1.07 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4353/0.4366, allocations: 159.9 MB / 1.226 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt): time 0.002268/0.4389, allocations: 0.6655 MB / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001124/0.44, allocations: 0.8001 MB / 1.227 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.239e-05/0.4401, allocations: 0 / 1.227 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.04e-05/0.4401, allocations: 3.938 kB / 1.227 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.553e-05/0.4402, allocations: 3.938 kB / 1.227 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.4404, allocations: 11.98 kB / 1.227 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.767e-05/0.4405, allocations: 19.98 kB / 1.227 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.4407, allocations: 7.984 kB / 1.227 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.071e-05/0.4407, allocations: 15.88 kB / 1.227 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.825e-05/0.4408, allocations: 7.984 kB / 1.227 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.39e-05/0.4408, allocations: 4 kB / 1.227 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.21e-05/0.4409, allocations: 4 kB / 1.227 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.974e-05/0.4409, allocations: 7.938 kB / 1.227 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.238e-05/0.441, allocations: 7.984 kB / 1.227 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.4411, allocations: 19.91 kB / 1.227 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.463e-06/0.4411, allocations: 0 / 1.227 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.435e-06/0.4411, allocations: 0 / 1.227 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.815e-06/0.4411, allocations: 0 / 1.227 GB, free: 7.605 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005911/0.4417, allocations: 339.5 kB / 1.228 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.4418, allocations: 12.03 kB / 1.228 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.11e-05/0.4418, allocations: 4.891 kB / 1.228 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.442, allocations: 176.3 kB / 1.228 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.442, allocations: 384 / 1.228 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.968e-06/0.4421, allocations: 384 / 1.228 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.4423, allocations: 54.17 kB / 1.228 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.4423, allocations: 192 / 1.228 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.4423, allocations: 3.938 kB / 1.228 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.4423, allocations: 0 / 1.228 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.4425, allocations: 39.95 kB / 1.228 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000446/0.443, allocations: 248.9 kB / 1.228 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.4432, allocations: 38.48 kB / 1.228 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.4433, allocations: 24.91 kB / 1.228 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.4433, allocations: 7.938 kB / 1.228 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.4434, allocations: 30.56 kB / 1.228 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.924e-06/0.4434, allocations: 0 / 1.228 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.000426/0.4438, allocations: 81.64 kB / 1.228 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.4439, allocations: 55.34 kB / 1.228 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.444, allocations: 102 kB / 1.228 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.444, allocations: 29.69 kB / 1.228 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.442e-05/0.4441, allocations: 88.09 kB / 1.228 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.4441, allocations: 3.953 kB / 1.228 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.4442, allocations: 13.72 kB / 1.228 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.4443, allocations: 314.8 kB / 1.229 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.002e-05/0.4444, allocations: 19.92 kB / 1.229 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.823e-05/0.4445, allocations: 19.97 kB / 1.229 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.4447, allocations: 36.83 kB / 1.229 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4447, allocations: 0 / 1.229 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001758/0.4448, allocations: 69.59 kB / 1.229 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.4449, allocations: 4 kB / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.4449, allocations: 96 / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.4449, allocations: 4 kB / 1.229 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.445, allocations: 11.98 kB / 1.229 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.445, allocations: 0 / 1.229 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.593e-05/0.4451, allocations: 8 kB / 1.229 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.4451, allocations: 0 / 1.229 GB, free: 5.574 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.522e-05/0.4452, allocations: 117.7 kB / 1.229 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.993e-05/0.4452, allocations: 4 kB / 1.229 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.4453, allocations: 3.125 kB / 1.229 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4453, allocations: 4 kB / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4453, allocations: 0 / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4453, allocations: 0 / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.4455, allocations: 157.6 kB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4455, allocations: 4 kB / 1.229 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.413e-05/0.4455, allocations: 11.98 kB / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.4455, allocations: 0 / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.4455, allocations: 7.938 kB / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.4456, allocations: 0 / 1.229 GB, free: 5.211 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4456, allocations: 4 kB / 1.229 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.4458, allocations: 159.6 kB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.775e-05/0.4459, allocations: 85.06 kB / 1.229 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.4459, allocations: 7.969 kB / 1.229 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.25e-05/0.446, allocations: 4 kB / 1.229 GB, free: 4.922 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.446, allocations: 7.938 kB / 1.23 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.446, allocations: 8.016 kB / 1.23 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.264e-05/0.4461, allocations: 79.28 kB / 1.23 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4461, allocations: 0 / 1.23 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002072/0.4463, allocations: 4 kB / 1.23 GB, free: 4.824 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002248/0.4465, allocations: 103.2 kB / 1.23 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002291/0.4468, allocations: 39.89 kB / 1.23 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4468, allocations: 4.062 kB / 1.23 GB, free: 4.668 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.811e-05/0.4469, allocations: 19.98 kB / 1.23 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.4472, allocations: 3.938 kB / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003659/0.4476, allocations: 113.3 kB / 1.23 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.4479, allocations: 0.6768 MB / 1.231 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.842e-05/0.4479, allocations: 4 kB / 1.231 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.448, allocations: 15.5 kB / 1.231 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.448, allocations: 0 / 1.231 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of Templates: time 0.002809/0.4508, allocations: 437.5 kB / 1.231 GB, free: 3.363 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sqrt.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sqrt.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches