Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.BesselJ1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.666/1.666, allocations: 249.5 MB / 257 MB, free: 7.004 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 184.2 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.3 MB / 0.5671 GB, free: 15.86 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007511/0.0007511, allocations: 100.4 kB / 0.6714 GB, free: 4.969 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.816e-05, allocations: 11.98 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1853, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6989/0.8842, allocations: 131.4 MB / 1.014 GB, free: 6.406 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.8845, allocations: 81.19 kB / 1.014 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003465/0.888, allocations: 1.262 MB / 1.015 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.537e-06/0.888, allocations: 0 / 1.015 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.8881, allocations: 7.938 kB / 1.015 GB, free: 5.27 MB / 0.6355 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.0002711/0.8883, allocations: 322.5 kB / 1.015 GB, free: 4.91 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.8884, allocations: 8.031 kB / 1.015 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.493e-05/0.8884, allocations: 3.875 kB / 1.015 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.396e-05/0.8885, allocations: 167.8 kB / 1.015 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.8885, allocations: 0 / 1.015 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.777e-06/0.8886, allocations: 3.938 kB / 1.015 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.803e-05/0.8886, allocations: 0 / 1.015 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.838e-05/0.8887, allocations: 33.69 kB / 1.015 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.8887, allocations: 4 kB / 1.015 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.8887, allocations: 0 / 1.015 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.8887, allocations: 0.875 kB / 1.015 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001517/0.8889, allocations: 130.1 kB / 1.015 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 3.206e-05/0.8889, allocations: 14.58 kB / 1.016 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.578e-05/0.8889, allocations: 8.953 kB / 1.016 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005902/0.8895, allocations: 449 kB / 1.016 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.8896, allocations: 38.5 kB / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.8896, allocations: 0 / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001298/0.8897, allocations: 32.77 kB / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.8897, allocations: 51.41 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.409e-05/0.8898, allocations: 89.03 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.8898, allocations: 25.7 kB / 1.016 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.257e-05/0.8898, allocations: 80.14 kB / 1.016 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.8899, allocations: 0 / 1.016 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-06/0.8899, allocations: 0 / 1.016 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.89, allocations: 310.8 kB / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-06/0.89, allocations: 4 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.058e-06/0.89, allocations: 0 / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.89, allocations: 0 / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.89, allocations: 8.047 kB / 1.017 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.033e-05/0.8901, allocations: 40.91 kB / 1.017 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.8901, allocations: 8 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.8901, allocations: 0 / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.8902, allocations: 3.938 kB / 1.017 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.414e-05/0.8902, allocations: 1.688 kB / 1.017 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.8902, allocations: 0.7031 kB / 1.017 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.057e-06/0.8902, allocations: 4 kB / 1.017 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-06/0.8902, allocations: 0 / 1.017 GB, free: 3.191 MB / 0.6355 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 () * 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 5.774e-05/0.8903, allocations: 107.5 kB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-06/0.8903, allocations: 3.953 kB / 1.017 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.382e-05/0.8904, allocations: 41.39 kB / 1.017 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.8904, allocations: 0 / 1.017 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.8904, allocations: 0 / 1.017 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.8904, allocations: 4 kB / 1.017 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.066e-05/0.8905, allocations: 126.2 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.8905, allocations: 7.922 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.184e-05/0.8905, allocations: 0.5625 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.8905, allocations: 32 / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-06/0.8906, allocations: 4 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.8906, allocations: 7.953 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.8906, allocations: 4 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.037e-05/0.8907, allocations: 52.27 kB / 1.017 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.319e-05/0.8907, allocations: 81.09 kB / 1.017 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.437e-06/0.8907, allocations: 0 / 1.017 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.494e-06/0.8907, allocations: 7.938 kB / 1.017 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.666e-05/0.8908, allocations: 11.97 kB / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-06/0.8908, allocations: 0 / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 2.553e-05/0.8908, allocations: 75.28 kB / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8908, allocations: 0 / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002051/0.891, allocations: 23.44 kB / 1.017 GB, free: 2.562 MB / 0.6355 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 () * 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.0002748/0.8913, allocations: 139.1 kB / 1.017 GB, free: 2.418 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 5.874e-05/0.8914, allocations: 4 kB / 1.017 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.8914, allocations: 0 / 1.017 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.568e-06/0.8914, allocations: 0 / 1.017 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001028/0.8915, allocations: 7.984 kB / 1.017 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001427/0.8916, allocations: 40.02 kB / 1.017 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.8919, allocations: 0.673 MB / 1.018 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.27e-05/0.8919, allocations: 7.984 kB / 1.018 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.179e-05/0.8919, allocations: 7.438 kB / 1.018 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of SimCode: time 2.8e-07/0.8919, allocations: 0 / 1.018 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of Templates: time 0.002179/0.8941, allocations: 372.2 kB / 1.018 GB, free: 1.277 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_BesselJ1.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.BesselJ1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches