Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.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 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.BesselJ1,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_BesselJ1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BesselJ1,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_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.001156/0.001156, allocations: 112.5 kB / 15.73 MB, free: 76 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.00142/0.00142, allocations: 192.1 kB / 16.66 MB, free: 6.582 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.448/1.448, 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 10.1.1-maint.10.0.x/package.mo): time 2.681/2.681, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 72.03 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3028, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ1): time 0.002781/0.3056, allocations: 1.42 MB / 1.168 GB, free: 5.891 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0006411/0.3063, allocations: 256 kB / 1.168 GB, free: 5.637 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.014e-05/0.3063, allocations: 0 / 1.168 GB, free: 5.637 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.237e-05/0.3064, allocations: 3.938 kB / 1.168 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.235e-05/0.3064, allocations: 3.984 kB / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000468/0.3069, allocations: 59.83 kB / 1.168 GB, free: 5.57 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.149e-05/0.307, allocations: 23.92 kB / 1.168 GB, free: 5.547 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.3071, allocations: 4 kB / 1.168 GB, free: 5.543 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.363e-05/0.3072, allocations: 19.91 kB / 1.168 GB, free: 5.523 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.823e-05/0.3072, allocations: 7.984 kB / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.3073, allocations: 4 kB / 1.168 GB, free: 5.512 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.3074, allocations: 59.89 kB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.506e-05/0.3075, allocations: 7.922 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.803e-05/0.3075, allocations: 8 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.3077, allocations: 52.08 kB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3077, allocations: 0 / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.224e-06/0.3077, allocations: 4 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.3077, allocations: 0 / 1.168 GB, free: 5.383 MB / 0.92 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.0005645/0.3083, allocations: 343.4 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.3084, allocations: 8.031 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.674e-05/0.3084, allocations: 42.73 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.012e-05/0.3084, allocations: 4.875 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.3086, allocations: 168.3 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.3086, allocations: 4.359 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.3086, allocations: 8.375 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.3088, allocations: 50.23 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3089, allocations: 3.938 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3089, allocations: 0 / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.3089, allocations: 3.938 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.3091, allocations: 35.95 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003253/0.3094, allocations: 244.9 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.3095, allocations: 42.5 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.743e-05/0.3096, allocations: 28.89 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007114/0.3104, allocations: 457.4 kB / 1.169 GB, free: 3.711 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.3104, allocations: 38.55 kB / 1.169 GB, free: 3.664 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/0.3104, allocations: 0 / 1.169 GB, free: 3.664 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0003674/0.3108, allocations: 77.59 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.3108, allocations: 59.52 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.933e-05/0.3109, allocations: 101.9 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.3109, allocations: 25.7 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.26e-05/0.311, allocations: 80.14 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.311, allocations: 7.953 kB / 1.17 GB, free: 3.281 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.311, allocations: 17.7 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3111, allocations: 310.8 kB / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.41e-05/0.3112, allocations: 19.98 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.086e-05/0.3113, allocations: 15.98 kB / 1.17 GB, free: 2.91 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.3115, allocations: 40.81 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.3115, allocations: 3.938 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001903/0.3117, allocations: 69.56 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.3117, allocations: 16.08 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3117, allocations: 0 / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.3117, allocations: 0 / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.332e-05/0.3118, allocations: 4 kB / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.3118, allocations: 4 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.542e-05/0.3119, allocations: 3.984 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.3119, allocations: 4 kB / 1.17 GB, free: 2.758 MB / 0.92 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.9e-05/0.312, allocations: 109.8 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.553e-05/0.312, allocations: 0 / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002478/0.3123, allocations: 84.7 kB / 1.17 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3123, allocations: 0 / 1.17 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3123, allocations: 0 / 1.17 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3123, allocations: 0 / 1.17 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.3125, allocations: 161.6 kB / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3125, allocations: 0 / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-05/0.3125, allocations: 15.92 kB / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.3125, allocations: 32 / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.3126, allocations: 4 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3126, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3126, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002408/0.3128, allocations: 163.5 kB / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.766e-05/0.3129, allocations: 81.06 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.3129, allocations: 4 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.381e-05/0.313, allocations: 12.2 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.313, allocations: 7.938 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.313, allocations: 3.984 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.3131, allocations: 91.2 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3131, allocations: 0 / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002442/0.3133, allocations: 15.94 kB / 1.171 GB, free: 1.918 MB / 0.92 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.0005947/0.3139, allocations: 0.7124 MB / 1.172 GB, free: 1.176 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000208/0.3142, allocations: 39.98 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3142, allocations: 3.938 kB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.028e-05/0.3142, allocations: 15.98 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.3145, allocations: 5.719 kB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004197/0.3149, allocations: 139.1 kB / 1.172 GB, free: 0.9375 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.3152, allocations: 0.6729 MB / 1.173 GB, free: 244 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.594e-05/0.3152, allocations: 12.11 kB / 1.173 GB, free: 232 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.904e-05/0.3152, allocations: 7.438 kB / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of SimCode: time 3.2e-07/0.3152, allocations: 0 / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01973/0.335, allocations: 1.506 MB / 1.174 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.821/8.156, allocations: 4.797 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.BesselJ1.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.BesselJ1.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.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_10_Buildings_Utilities_Math_Examples_BesselJ1.fmu > Buildings_10_Buildings.Utilities.Math.Examples.BesselJ1.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.BesselJ1_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_BesselJ1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.BesselJ1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches