Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.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.Utilities.Math.Examples.BesselJ1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1") translateModel(Buildings.Utilities.Math.Examples.BesselJ1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00178/0.001781, allocations: 195.7 kB / 16.14 MB, free: 6.648 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.397/1.397, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.907/2.907, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 63.58 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.367, allocations: 157.4 MB / 1.052 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ1): time 0.003252/0.3703, allocations: 1.498 MB / 1.054 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006562/0.3709, allocations: 271.1 kB / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.158e-05/0.371, allocations: 0 / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.958e-05/0.371, allocations: 4 kB / 1.054 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.28e-05/0.3711, allocations: 0 / 1.054 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004739/0.3716, allocations: 47.84 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.33e-05/0.3717, allocations: 27.91 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.893e-05/0.3718, allocations: 4 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.846e-05/0.3719, allocations: 11.98 kB / 1.054 GB, free: 7.035 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.397e-05/0.3719, allocations: 7.938 kB / 1.054 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.111e-05/0.3719, allocations: 4 kB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001884/0.3721, allocations: 67.88 kB / 1.054 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.3721, allocations: 3.984 kB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.708e-05/0.3722, allocations: 11.92 kB / 1.054 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.3724, allocations: 47.81 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3724, allocations: 0 / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.42e-07/0.3724, allocations: 4 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.3724, allocations: 0 / 1.054 GB, free: 6.891 MB / 0.8106 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.0005598/0.373, allocations: 355.7 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.373, allocations: 8.031 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.667e-05/0.3731, allocations: 8.844 kB / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.3732, allocations: 168.4 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.3732, allocations: 384 / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.19e-05/0.3732, allocations: 384 / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.3734, allocations: 50.23 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.3734, allocations: 192 / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.3734, allocations: 3.938 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.3735, allocations: 4 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.3736, allocations: 39.89 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.374, allocations: 245 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.3741, allocations: 38.5 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.25e-05/0.3742, allocations: 32.89 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007948/0.375, allocations: 449.5 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.3751, allocations: 34.55 kB / 1.055 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.3751, allocations: 4 kB / 1.055 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003411/0.3754, allocations: 81.59 kB / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.3755, allocations: 55.39 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.087e-05/0.3756, allocations: 97.86 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.3756, allocations: 25.7 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.736e-05/0.3756, allocations: 84.14 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.3757, allocations: 8.031 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.292e-05/0.3757, allocations: 17.7 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002041/0.3759, allocations: 314.8 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.034e-05/0.376, allocations: 15.92 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.165e-05/0.3761, allocations: 15.98 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.3762, allocations: 48.81 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3762, allocations: 0 / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002072/0.3765, allocations: 69.52 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3765, allocations: 13.33 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3765, allocations: 0 / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.3765, allocations: 0 / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.319e-05/0.3766, allocations: 8 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.3766, allocations: 4.031 kB / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.93e-05/0.3767, allocations: 7.984 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.3767, allocations: 4 kB / 1.056 GB, free: 4.309 MB / 0.8106 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 7.309e-05/0.3768, allocations: 109.8 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.353e-05/0.3768, allocations: 4 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002219/0.377, allocations: 76.7 kB / 1.056 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.377, allocations: 4.219 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.377, allocations: 0 / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.377, allocations: 7.984 kB / 1.056 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.3772, allocations: 157.6 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3772, allocations: 0 / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.727e-05/0.3773, allocations: 7.984 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3773, allocations: 0 / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.3773, allocations: 4 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3773, allocations: 4 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3773, allocations: 0 / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002441/0.3776, allocations: 167.4 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.3776, allocations: 81.05 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.3776, allocations: 4 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.555e-05/0.3777, allocations: 7.984 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.3778, allocations: 0 / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.3778, allocations: 4 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.172e-05/0.3778, allocations: 83.3 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3778, allocations: 0 / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002466/0.3781, allocations: 23.91 kB / 1.057 GB, free: 3.48 MB / 0.8106 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.0002197/0.3783, allocations: 111.2 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002088/0.3785, allocations: 39.95 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3785, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.672e-05/0.3786, allocations: 19.92 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.3789, allocations: 7.938 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002772/0.3792, allocations: 107.2 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.3796, allocations: 0.6849 MB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.55e-05/0.3796, allocations: 4 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.014e-05/0.3796, allocations: 7.438 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of SimCode: time 4.01e-07/0.3796, allocations: 0 / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of Templates: time 0.002734/0.3824, allocations: 0.5968 MB / 1.058 GB, free: 1.848 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_BesselJ1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches