Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_BesselJ1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BesselJ1,fileNamePrefix="Buildings_9_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.001097/0.001097, 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.001224/0.001224, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.22/2.22, allocations: 390.3 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 67.89 kB / 0.8127 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6689/0.6703, allocations: 140.3 MB / 0.9497 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ1): time 0.002032/0.6723, allocations: 1.429 MB / 0.9511 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003795/0.6727, allocations: 254 kB / 0.9513 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.638e-05/0.6727, allocations: 3.938 kB / 0.9514 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.682e-05/0.6728, allocations: 0 / 0.9514 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.058e-05/0.6728, allocations: 5.156 kB / 0.9514 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.673, allocations: 58.3 kB / 0.9514 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.391e-05/0.6731, allocations: 21.58 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.447e-05/0.6731, allocations: 7.578 kB / 0.9514 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.139e-05/0.6732, allocations: 10.84 kB / 0.9515 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.293e-05/0.6732, allocations: 6.734 kB / 0.9515 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.585e-06/0.6732, allocations: 6.719 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.6733, allocations: 63.56 kB / 0.9515 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.6733, allocations: 8.938 kB / 0.9515 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.476e-05/0.6733, allocations: 1.844 kB / 0.9515 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.845e-05/0.6734, allocations: 60.72 kB / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.6734, allocations: 0 / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.92e-07/0.6734, allocations: 0 / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.397e-06/0.6734, allocations: 0 / 0.9516 GB, free: 7.609 MB / 0.7169 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.0002473/0.6737, allocations: 345.8 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.625e-05/0.6737, allocations: 13.59 kB / 0.9519 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.693e-05/0.6738, allocations: 32.38 kB / 0.952 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.481e-05/0.6738, allocations: 2.656 kB / 0.952 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.814e-05/0.6738, allocations: 168.3 kB / 0.9521 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.781e-06/0.6738, allocations: 6 kB / 0.9521 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-06/0.6738, allocations: 5.781 kB / 0.9521 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.674, allocations: 45.36 kB / 0.9522 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.674, allocations: 3.938 kB / 0.9522 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.781e-06/0.674, allocations: 7.938 kB / 0.9522 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.705e-06/0.674, allocations: 1.312 kB / 0.9522 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001509/0.6742, allocations: 30.72 kB / 0.9522 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.6743, allocations: 261.1 kB / 0.9525 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.806e-05/0.6744, allocations: 39.09 kB / 0.9525 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.517e-05/0.6745, allocations: 18.16 kB / 0.9525 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004782/0.675, allocations: 462.1 kB / 0.953 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.17e-05/0.675, allocations: 32.09 kB / 0.953 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.675, allocations: 0 / 0.953 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000272/0.6753, allocations: 92.3 kB / 0.9531 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.476e-05/0.6753, allocations: 53 kB / 0.9531 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.44e-05/0.6754, allocations: 98.44 kB / 0.9532 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.512e-06/0.6754, allocations: 29.7 kB / 0.9533 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.543e-05/0.6754, allocations: 81.55 kB / 0.9533 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.578e-06/0.6754, allocations: 5.25 kB / 0.9533 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.301e-05/0.6754, allocations: 12.12 kB / 0.9534 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.971e-05/0.6755, allocations: 314.8 kB / 0.9537 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.099e-05/0.6756, allocations: 21.84 kB / 0.9537 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.403e-05/0.6756, allocations: 17.05 kB / 0.9537 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.6758, allocations: 36.64 kB / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.6758, allocations: 7.938 kB / 0.9537 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001639/0.6759, allocations: 72.03 kB / 0.9538 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.385e-06/0.676, allocations: 5.094 kB / 0.9538 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-06/0.676, allocations: 0 / 0.9538 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.613e-06/0.676, allocations: 0 / 0.9538 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.941e-05/0.676, allocations: 10.39 kB / 0.9538 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.676, allocations: 1.125 kB / 0.9538 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.026e-05/0.6761, allocations: 6.734 kB / 0.9538 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-06/0.6761, allocations: 1.406 kB / 0.9538 GB, free: 5.246 MB / 0.7169 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 3.7e-05/0.6761, allocations: 119 kB / 0.9539 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.6762, allocations: 6.031 kB / 0.9539 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001817/0.6764, allocations: 70.53 kB / 0.954 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.6764, allocations: 0 / 0.954 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.6764, allocations: 5.422 kB / 0.954 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.6764, allocations: 0 / 0.954 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.6765, allocations: 161.6 kB / 0.9542 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6765, allocations: 3.969 kB / 0.9542 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.252e-05/0.6765, allocations: 10.5 kB / 0.9542 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.6766, allocations: 0 / 0.9542 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.6766, allocations: 9.391 kB / 0.9542 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.6766, allocations: 3.984 kB / 0.9542 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6766, allocations: 0 / 0.9542 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.6768, allocations: 163.3 kB / 0.9544 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.499e-05/0.6768, allocations: 82.05 kB / 0.9544 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-06/0.6768, allocations: 1.25 kB / 0.9544 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.762e-05/0.6769, allocations: 3.625 kB / 0.9544 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.772e-05/0.6769, allocations: 9.297 kB / 0.9544 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.6769, allocations: 0 / 0.9544 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.895e-05/0.6769, allocations: 78.75 kB / 0.9545 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6769, allocations: 0 / 0.9545 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002142/0.6771, allocations: 18.59 kB / 0.9545 GB, free: 4.5 MB / 0.7169 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.0003938/0.6775, allocations: 0.7204 MB / 0.9552 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000167/0.6777, allocations: 41.3 kB / 0.9553 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.6777, allocations: 0 / 0.9553 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.373e-05/0.6778, allocations: 19.3 kB / 0.9553 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.678, allocations: 2.344 kB / 0.9553 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002827/0.6783, allocations: 141.4 kB / 0.9554 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.21e-05/0.6784, allocations: 0.6808 MB / 0.9561 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.654e-05/0.6784, allocations: 4.812 kB / 0.9561 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.866e-05/0.6784, allocations: 9.5 kB / 0.9561 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.6784, allocations: 0 / 0.9561 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.803/2.482, allocations: 1.484 MB / 0.9576 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/13.78, allocations: 4.75 kB / 0.9576 GB, free: 2.055 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_BesselJ1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_BesselJ1.fmu > Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_BesselJ1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches