Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BesselJ0,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_BesselJ0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BesselJ0,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_BesselJ0",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009355/0.009355, allocations: 100.3 kB / 15.73 MB, free: 6.062 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.001922/0.001922, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.485/2.485, allocations: 437 MB / 0.7105 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 59.91 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8273/0.8287, allocations: 151.6 MB / 1.166 GB, free: 3.754 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ0): time 0.003211/0.832, allocations: 1.439 MB / 1.168 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006834/0.8327, allocations: 242.6 kB / 1.168 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.184e-05/0.8328, allocations: 0 / 1.168 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.17e-05/0.8328, allocations: 3.938 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.998e-05/0.8329, allocations: 0 / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005428/0.8334, allocations: 63.83 kB / 1.168 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.8336, allocations: 27.86 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.8337, allocations: 7.984 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.198e-05/0.8338, allocations: 7.984 kB / 1.168 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.819e-05/0.8338, allocations: 11.94 kB / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.8339, allocations: 4 kB / 1.168 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002114/0.8341, allocations: 55.88 kB / 1.168 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.524e-05/0.8341, allocations: 8 kB / 1.168 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.8342, allocations: 3.938 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.8344, allocations: 56.89 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.8344, allocations: 0 / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.765e-06/0.8344, allocations: 3.938 kB / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.8344, allocations: 0 / 1.168 GB, free: 1.816 MB / 0.8887 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.0006519/0.8351, allocations: 346.1 kB / 1.168 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.8352, allocations: 12.92 kB / 1.168 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.812e-05/0.8352, allocations: 30.75 kB / 1.168 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.55e-05/0.8352, allocations: 0.9375 kB / 1.168 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.8354, allocations: 168.3 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.8354, allocations: 8.312 kB / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.8355, allocations: 4.375 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.8357, allocations: 46.23 kB / 1.169 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.8357, allocations: 3.938 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.8357, allocations: 7.984 kB / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.8357, allocations: 0 / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.8359, allocations: 35.95 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000402/0.8363, allocations: 248.9 kB / 1.169 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.8365, allocations: 46.47 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.988e-05/0.8366, allocations: 20.91 kB / 1.169 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007782/0.8374, allocations: 457.5 kB / 1.169 GB, free: 160 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.8374, allocations: 34.56 kB / 1.169 GB, free: 116 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.8374, allocations: 0 / 1.169 GB, free: 116 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0003816/0.8378, allocations: 77.66 kB / 1.17 GB, free: 32 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.8379, allocations: 63.45 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.157e-05/0.838, allocations: 97.86 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.838, allocations: 25.7 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.274e-05/0.8381, allocations: 92.06 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.8381, allocations: 3.953 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.8381, allocations: 17.7 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.8383, allocations: 314.8 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.556e-05/0.8384, allocations: 15.98 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.229e-05/0.8384, allocations: 19.98 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.8386, allocations: 36.81 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.8386, allocations: 3.938 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001952/0.8388, allocations: 73.62 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.8388, allocations: 7.984 kB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.8388, allocations: 0 / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.8389, allocations: 7.938 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.475e-05/0.839, allocations: 4 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.839, allocations: 0 / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.976e-05/0.839, allocations: 7.984 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.839, allocations: 0 / 1.17 GB, free: 15.2 MB / 0.9044 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 0.0001129/0.8392, allocations: 121.8 kB / 1.17 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.87e-05/0.8392, allocations: 0 / 1.17 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.8394, allocations: 72.77 kB / 1.17 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.8395, allocations: 0 / 1.17 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.8395, allocations: 0 / 1.17 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.8395, allocations: 0 / 1.17 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.8397, allocations: 157.6 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.8397, allocations: 0 / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.084e-05/0.8397, allocations: 15.95 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.8398, allocations: 4 kB / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.8398, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.8398, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.8398, allocations: 0 / 1.171 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002617/0.84, allocations: 163.5 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.188e-05/0.8401, allocations: 81.06 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.8401, allocations: 4.031 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.412e-05/0.8402, allocations: 7.984 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.8403, allocations: 8 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.8403, allocations: 4 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.662e-05/0.8403, allocations: 83.27 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8403, allocations: 0 / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002553/0.8406, allocations: 15.94 kB / 1.171 GB, free: 14.37 MB / 0.9044 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.0006803/0.8413, allocations: 0.7085 MB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.8415, allocations: 43.98 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8416, allocations: 3.938 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.78e-05/0.8416, allocations: 23.92 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.8419, allocations: 336 / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004374/0.8423, allocations: 135 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.8426, allocations: 0.6769 MB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.174e-05/0.8427, allocations: 3.938 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.507e-05/0.8427, allocations: 19.42 kB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of SimCode: time 3.11e-07/0.8427, allocations: 0 / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.8603, allocations: 1.499 MB / 1.174 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/8.644, allocations: 12.91 kB / 1.174 GB, free: 11.23 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 Buildings_10_Buildings_Utilities_Math_Examples_BesselJ0.fmu > Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_BesselJ0.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.BesselJ0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches