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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.BesselJ1,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_BesselJ1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.BesselJ1,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_BesselJ1",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.007929/0.007929, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001755/0.001755, allocations: 196.9 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.97/2.97, allocations: 469.4 MB / 0.7422 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 68.11 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3287, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.BesselJ1): time 0.001914/0.3307, allocations: 0.5907 MB / 1.22 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0004967/0.3312, allocations: 201 kB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.219e-05/0.3312, allocations: 4 kB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.187e-05/0.3312, allocations: 0 / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.833e-06/0.3313, allocations: 4 kB / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.3317, allocations: 47.83 kB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 4.866e-05/0.3318, allocations: 4 kB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.247e-05/0.3319, allocations: 7.984 kB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.373e-05/0.3319, allocations: 0 / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.502e-05/0.3319, allocations: 0 / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.503e-06/0.3319, allocations: 3.938 kB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.3321, allocations: 59.88 kB / 1.221 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.968e-06/0.3321, allocations: 4 kB / 1.221 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.3322, allocations: 8 kB / 1.221 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.3323, allocations: 31.94 kB / 1.221 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3323, allocations: 0 / 1.221 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3323, allocations: 0 / 1.221 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.3323, allocations: 0 / 1.221 GB, free: 13.69 MB / 0.9825 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.0003093/0.3326, allocations: 331.4 kB / 1.221 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3327, allocations: 8.031 kB / 1.221 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.371e-05/0.3327, allocations: 30.75 kB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.65e-05/0.3327, allocations: 0.9375 kB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.591e-05/0.3328, allocations: 172.3 kB / 1.221 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.3329, allocations: 4.375 kB / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-06/0.3329, allocations: 384 / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.789e-05/0.333, allocations: 26.27 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.333, allocations: 3.938 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-06/0.333, allocations: 3.938 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.333, allocations: 0 / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.737e-05/0.333, allocations: 4 kB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.3332, allocations: 145.7 kB / 1.221 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.248e-05/0.3332, allocations: 26.55 kB / 1.221 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.672e-05/0.3332, allocations: 8.844 kB / 1.221 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007854/0.334, allocations: 449.5 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.3341, allocations: 46.55 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 2.995e-06/0.3341, allocations: 0 / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001375/0.3342, allocations: 45.56 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.3343, allocations: 51.41 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.725e-05/0.3343, allocations: 89.86 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.3343, allocations: 29.64 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.322e-05/0.3344, allocations: 80.14 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.3344, allocations: 0 / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.3344, allocations: 21.84 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3345, allocations: 310.8 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.372e-05/0.3346, allocations: 3.984 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.174e-06/0.3346, allocations: 0 / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.983e-05/0.3346, allocations: 8.859 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3346, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.848e-05/0.3347, allocations: 29.7 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3347, allocations: 8.094 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3347, allocations: 7.938 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3347, allocations: 0 / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.24e-05/0.3348, allocations: 3.938 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.3348, allocations: 0 / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.3348, allocations: 4 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.3348, allocations: 3.984 kB / 1.223 GB, free: 11.44 MB / 0.9825 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.155e-05/0.3349, allocations: 110.4 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-06/0.3349, allocations: 0 / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.376e-05/0.335, allocations: 40.77 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.335, allocations: 0 / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.335, allocations: 0 / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.335, allocations: 4 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.96e-05/0.3351, allocations: 145.7 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3351, allocations: 0 / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.487e-05/0.3351, allocations: 4 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3351, allocations: 0 / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.3351, allocations: 7.938 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3351, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3351, allocations: 3.938 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.177e-05/0.3352, allocations: 61.09 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.3352, allocations: 77.11 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.3353, allocations: 7.938 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.3353, allocations: 3.938 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-06/0.3353, allocations: 0 / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.3353, allocations: 4 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.433e-05/0.3353, allocations: 79.28 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3353, allocations: 4.031 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002068/0.3355, allocations: 15.94 kB / 1.223 GB, free: 10.79 MB / 0.9825 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 (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.00041/0.336, allocations: 0.6163 MB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 6.81e-05/0.336, allocations: 4 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.336, allocations: 0 / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.105e-06/0.3361, allocations: 4 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.3362, allocations: 3.422 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002691/0.3365, allocations: 116.4 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.3367, allocations: 0.669 MB / 1.224 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.387e-05/0.3367, allocations: 12.06 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.3368, allocations: 7.438 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.3368, allocations: 0 / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.3554, allocations: 1.157 MB / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.898, allocations: 11.25 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_BesselJ1.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ1_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_BesselJ1.csv","/var/lib/jenkins1/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