Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Utilities.Math.Functions.Examples.BesselJ1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1") translateModel(Buildings.Utilities.Math.Functions.Examples.BesselJ1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001228/0.001228, allocations: 168.7 kB / 15.95 MB, free: 204 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.516/1.516, allocations: 223.3 MB / 240 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.997/2.997, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003787, allocations: 16.88 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3725, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.BesselJ1): time 0.0008146/0.3733, allocations: 306.9 kB / 1.058 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0005072/0.3739, allocations: 187.6 kB / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.17e-05/0.3739, allocations: 0 / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.194e-05/0.3739, allocations: 0 / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.083e-06/0.3739, allocations: 0 / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.3744, allocations: 43.88 kB / 1.059 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.954e-05/0.3744, allocations: 4 kB / 1.059 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.513e-05/0.3745, allocations: 0 / 1.059 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.377e-05/0.3745, allocations: 0 / 1.059 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.005e-05/0.3745, allocations: 4 kB / 1.059 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.3745, allocations: 3.938 kB / 1.059 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.3747, allocations: 67.86 kB / 1.059 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.3748, allocations: 3.938 kB / 1.059 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.521e-05/0.3748, allocations: 25.7 kB / 1.059 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.367e-05/0.3749, allocations: 27.97 kB / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3749, allocations: 0 / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3749, allocations: 0 / 1.059 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.3749, allocations: 0 / 1.059 GB, free: 4.652 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000366/0.3753, allocations: 315.3 kB / 1.059 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.3753, allocations: 12.03 kB / 1.059 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.732e-05/0.3754, allocations: 3.984 kB / 1.059 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.3755, allocations: 163.1 kB / 1.059 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.3755, allocations: 4 kB / 1.059 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.3755, allocations: 3.953 kB / 1.059 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.3757, allocations: 25.7 kB / 1.059 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3757, allocations: 0 / 1.059 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.3757, allocations: 4 kB / 1.059 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.3757, allocations: 0 / 1.059 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.558e-05/0.3758, allocations: 15.88 kB / 1.059 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.3759, allocations: 145.7 kB / 1.059 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.741e-05/0.376, allocations: 18.61 kB / 1.059 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.828e-05/0.376, allocations: 4.859 kB / 1.059 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009023/0.3769, allocations: 465.5 kB / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.377, allocations: 34.56 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.377, allocations: 0 / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001636/0.3772, allocations: 33.64 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.3772, allocations: 55.41 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.808e-05/0.3773, allocations: 89.86 kB / 1.06 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.3773, allocations: 25.7 kB / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.119e-05/0.3773, allocations: 84.27 kB / 1.06 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.3774, allocations: 0 / 1.06 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.3774, allocations: 0 / 1.06 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3776, allocations: 314.8 kB / 1.06 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-06/0.3776, allocations: 3.984 kB / 1.06 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-06/0.3776, allocations: 0 / 1.06 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.543e-05/0.3776, allocations: 4 kB / 1.06 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3776, allocations: 0 / 1.06 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.306e-05/0.3777, allocations: 41.7 kB / 1.06 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3777, allocations: 7.953 kB / 1.06 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3777, allocations: 0 / 1.06 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3777, allocations: 0 / 1.06 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.88e-05/0.3778, allocations: 4 kB / 1.06 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.3778, allocations: 0 / 1.06 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.037e-05/0.3778, allocations: 0 / 1.06 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3778, allocations: 3.938 kB / 1.06 GB, free: 2.5 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 (1): * Single equations (assignments): 1 * 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 7.944e-05/0.3779, allocations: 109.8 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-06/0.3779, allocations: 8.031 kB / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001343/0.3781, allocations: 40.78 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.3781, allocations: 0 / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3781, allocations: 0 / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3781, allocations: 0 / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.3782, allocations: 157.6 kB / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3782, allocations: 0 / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.647e-05/0.3783, allocations: 4 kB / 1.061 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.3783, allocations: 3.938 kB / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.3783, allocations: 0 / 1.061 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3783, allocations: 7.984 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3783, allocations: 0 / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.3784, allocations: 57.12 kB / 1.061 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.813e-05/0.3785, allocations: 77.11 kB / 1.061 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.3785, allocations: 4 kB / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.625e-06/0.3785, allocations: 0 / 1.061 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.716e-05/0.3785, allocations: 3.953 kB / 1.061 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.3785, allocations: 0 / 1.061 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.295e-05/0.3786, allocations: 83.31 kB / 1.061 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3786, allocations: 0 / 1.061 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002209/0.3788, allocations: 12 kB / 1.061 GB, free: 1.844 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 (1): * Single equations (assignments): 1 * 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.0002654/0.3791, allocations: 119.2 kB / 1.061 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.939e-05/0.3792, allocations: 8 kB / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3792, allocations: 0 / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.431e-06/0.3792, allocations: 0 / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000158/0.3794, allocations: 4 kB / 1.061 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002197/0.3796, allocations: 82.66 kB / 1.061 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.3799, allocations: 0.6692 MB / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.43e-05/0.38, allocations: 0 / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.667e-05/0.38, allocations: 11.44 kB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.38, allocations: 0 / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of Templates: time 0.00293/0.3829, allocations: 407.9 kB / 1.062 GB, free: 500 kB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_BesselJ1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches