Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.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.Examples.BesselJ0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J0.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0") translateModel(Buildings.Utilities.Math.Examples.BesselJ0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J0.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.532/1.532, allocations: 249.5 MB / 257 MB, free: 7.027 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.001098/0.001098, allocations: 176.9 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.868/1.868, allocations: 205.3 MB / 0.5671 GB, free: 15.87 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.0008892/0.0008894, allocations: 93.92 kB / 0.6714 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.783e-05/1.785e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2736, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9325/1.206, allocations: 132 MB / 1.014 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/1.207, allocations: 70.77 kB / 1.014 GB, free: 5.691 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004545/1.211, allocations: 1.516 MB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.534e-06/1.211, allocations: 0.75 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.304e-06/1.211, allocations: 0 / 1.016 GB, free: 4.383 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004085/1.212, allocations: 357.2 kB / 1.016 GB, free: 3.992 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/1.212, allocations: 12.03 kB / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/1.212, allocations: 0 / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/1.212, allocations: 163 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/1.212, allocations: 4 kB / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/1.212, allocations: 0 / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.375e-05/1.212, allocations: 11.38 kB / 1.016 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.786e-05/1.212, allocations: 41.19 kB / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/1.212, allocations: 4 kB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/1.212, allocations: 3.938 kB / 1.016 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/1.212, allocations: 0 / 1.016 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004917/1.213, allocations: 243.1 kB / 1.017 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.135e-05/1.213, allocations: 29.67 kB / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.014e-05/1.213, allocations: 8.922 kB / 1.017 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006398/1.213, allocations: 444.6 kB / 1.017 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/1.213, allocations: 30.56 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.113e-06/1.213, allocations: 4 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002328/1.214, allocations: 44.75 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/1.214, allocations: 51.41 kB / 1.017 GB, free: 2.73 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.687e-05/1.214, allocations: 91.88 kB / 1.017 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/1.214, allocations: 29.7 kB / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.49e-05/1.214, allocations: 91.38 kB / 1.017 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/1.214, allocations: 3.906 kB / 1.017 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/1.214, allocations: 0 / 1.017 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001764/1.214, allocations: 318.8 kB / 1.018 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.809e-05/1.214, allocations: 7.688 kB / 1.018 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.223e-05/1.214, allocations: 4 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.184e-05/1.214, allocations: 5.531 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/1.214, allocations: 4 kB / 1.018 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.973e-05/1.214, allocations: 41.12 kB / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/1.214, allocations: 4 kB / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/1.214, allocations: 0 / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/1.214, allocations: 4.094 kB / 1.018 GB, free: 2.125 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/1.215, allocations: 19.92 kB / 1.018 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/1.215, allocations: 0 / 1.018 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.189e-05/1.215, allocations: 4 kB / 1.018 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/1.215, allocations: 3.938 kB / 1.018 GB, free: 2.098 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 (2): * Single equations (assignments): 2 * 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 9.363e-05/1.215, allocations: 108.9 kB / 1.018 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.234e-05/1.215, allocations: 3.984 kB / 1.018 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/1.215, allocations: 48.59 kB / 1.018 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/1.215, allocations: 0 / 1.018 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/1.215, allocations: 3.984 kB / 1.018 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/1.215, allocations: 0 / 1.018 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/1.215, allocations: 134.5 kB / 1.018 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.215, allocations: 7.953 kB / 1.018 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.241e-05/1.215, allocations: 11.98 kB / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/1.215, allocations: 0 / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/1.215, allocations: 0 / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.216e-06/1.215, allocations: 9.391 kB / 1.018 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.215, allocations: 3.938 kB / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/1.215, allocations: 138.2 kB / 1.018 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/1.215, allocations: 85.05 kB / 1.018 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/1.215, allocations: 0 / 1.018 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.012e-05/1.216, allocations: 8 kB / 1.018 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/1.216, allocations: 8.016 kB / 1.018 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/1.216, allocations: 4 kB / 1.018 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.304e-05/1.216, allocations: 82.78 kB / 1.018 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/1.216, allocations: 0 / 1.018 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002384/1.216, allocations: 23.94 kB / 1.018 GB, free: 1.359 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 (2): * Single equations (assignments): 2 * 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.0003176/1.216, allocations: 127.2 kB / 1.018 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.923e-05/1.216, allocations: 15.12 kB / 1.018 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.216, allocations: 0 / 1.018 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.076e-05/1.216, allocations: 7.75 kB / 1.018 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001761/1.217, allocations: 10.17 kB / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002032/1.217, allocations: 63.14 kB / 1.019 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/1.217, allocations: 0.6808 MB / 1.019 GB, free: 424 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.507e-05/1.217, allocations: 3.984 kB / 1.019 GB, free: 420 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.96e-05/1.217, allocations: 11.44 kB / 1.019 GB, free: 408 kB / 0.6355 GB Notification: Performance of SimCode: time 2.51e-07/1.217, allocations: 0 / 1.019 GB, free: 408 kB / 0.6355 GB Notification: Performance of Templates: time 0.002982/1.22, allocations: 0.5219 MB / 1.02 GB, free: 15.89 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_BesselJ0.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BesselJ0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches