Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.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.Utilities.Math.Examples.BesselJ0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J0.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0") translateModel(Buildings.Utilities.Math.Examples.BesselJ0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J0.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001168, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 194 kB / 16.53 MB, free: 6.391 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.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.752/2.752, allocations: 472.6 MB / 0.7451 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 67.52 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3324, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ0): time 0.002979/0.3355, allocations: 1.433 MB / 1.07 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000544/0.336, allocations: 243.3 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.188e-05/0.3361, allocations: 0 / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.3361, allocations: 0 / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.715e-05/0.3362, allocations: 3.938 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.3366, allocations: 67.7 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.568e-05/0.3367, allocations: 23.91 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.201e-05/0.3368, allocations: 12 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.007e-05/0.3369, allocations: 7.984 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.827e-05/0.3369, allocations: 7.938 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.3369, allocations: 4 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.3371, allocations: 59.94 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.043e-05/0.3371, allocations: 0 / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.047e-05/0.3371, allocations: 15.91 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.3373, allocations: 51.81 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.3373, allocations: 4 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3373, allocations: 0 / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.3373, allocations: 4 kB / 1.07 GB, free: 8.508 MB / 0.8262 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.0005499/0.3379, allocations: 347.7 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.338, allocations: 8.031 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.814e-05/0.338, allocations: 0.9375 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.3381, allocations: 164.4 kB / 1.071 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.3382, allocations: 384 / 1.071 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.3382, allocations: 384 / 1.071 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.3384, allocations: 54.23 kB / 1.071 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.547e-06/0.3384, allocations: 192 / 1.071 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.3384, allocations: 3.938 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.3384, allocations: 0 / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.3386, allocations: 39.89 kB / 1.071 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003872/0.339, allocations: 248.9 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.3392, allocations: 46.53 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.329e-05/0.3393, allocations: 24.91 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007154/0.34, allocations: 449.5 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.34, allocations: 34.56 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 2.595e-06/0.34, allocations: 4 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0003782/0.3404, allocations: 85.48 kB / 1.072 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.3404, allocations: 51.41 kB / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.317e-05/0.3405, allocations: 101.9 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.3405, allocations: 25.83 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.3406, allocations: 84.14 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.3406, allocations: 7.906 kB / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.552e-05/0.3407, allocations: 17.7 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3408, allocations: 310.8 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.583e-05/0.3409, allocations: 15.98 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.154e-05/0.3409, allocations: 15.98 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.3411, allocations: 44.81 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3411, allocations: 4 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001936/0.3413, allocations: 69.53 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3413, allocations: 5.875 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.3414, allocations: 7.938 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3414, allocations: 0 / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.373e-05/0.3415, allocations: 12.03 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.3415, allocations: 0 / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.612e-05/0.3415, allocations: 7.984 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.3415, allocations: 0 / 1.072 GB, free: 5.945 MB / 0.8262 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.229e-05/0.3416, allocations: 113.8 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.3416, allocations: 0 / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002276/0.3419, allocations: 88.7 kB / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3419, allocations: 0 / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3419, allocations: 0 / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3419, allocations: 0 / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.342, allocations: 157.6 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3421, allocations: 0 / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.729e-05/0.3421, allocations: 11.98 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3421, allocations: 0 / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.3421, allocations: 0 / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3421, allocations: 0 / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3421, allocations: 4.031 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002269/0.3424, allocations: 171.3 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.229e-05/0.3424, allocations: 81.05 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.3424, allocations: 0 / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.503e-05/0.3425, allocations: 7.984 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.3426, allocations: 4.031 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.3426, allocations: 4 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.698e-05/0.3426, allocations: 83.27 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3426, allocations: 0 / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002373/0.3429, allocations: 20 kB / 1.073 GB, free: 5.113 MB / 0.8262 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.0001943/0.3431, allocations: 111.3 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002348/0.3433, allocations: 43.95 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3433, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.17e-05/0.3434, allocations: 23.92 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.3437, allocations: 3.938 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003148/0.344, allocations: 109.6 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.3442, allocations: 0.6807 MB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.121e-05/0.3442, allocations: 3.938 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.976e-05/0.3443, allocations: 7.438 kB / 1.074 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3443, allocations: 0 / 1.074 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of Templates: time 0.003009/0.3473, allocations: 0.6568 MB / 1.075 GB, free: 3.418 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_BesselJ0.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.BesselJ0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches