Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.Functions.Examples.BesselJ0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J0",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0") translateModel(Buildings.Utilities.Math.Functions.Examples.BesselJ0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J0",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 108 kB / 15.61 MB, free: 152 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.001957/0.001957, allocations: 197 kB / 16.53 MB, free: 6.664 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.368/1.368, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.757/2.757, allocations: 472.6 MB / 0.7451 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 70.73 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3245, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.BesselJ0): time 0.001792/0.3263, allocations: 0.5801 MB / 1.069 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004175/0.3268, allocations: 195.3 kB / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.34e-05/0.3268, allocations: 0 / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.077e-05/0.3268, allocations: 0 / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.3268, allocations: 0 / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.3272, allocations: 51.83 kB / 1.069 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.244e-05/0.3272, allocations: 8 kB / 1.069 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.661e-05/0.3273, allocations: 3.984 kB / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.536e-05/0.3273, allocations: 0 / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.517e-05/0.3273, allocations: 3.938 kB / 1.069 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.805e-06/0.3273, allocations: 0 / 1.069 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001568/0.3275, allocations: 59.89 kB / 1.069 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.813e-06/0.3275, allocations: 0 / 1.069 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.709e-05/0.3275, allocations: 3.984 kB / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.3276, allocations: 27.95 kB / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3276, allocations: 0 / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3276, allocations: 0 / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.3277, allocations: 4 kB / 1.069 GB, free: 9.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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002526/0.3279, allocations: 327.6 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.328, allocations: 8.031 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.328, allocations: 0.9375 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.851e-05/0.3281, allocations: 160.4 kB / 1.07 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.3281, allocations: 4.359 kB / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.3281, allocations: 384 / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.428e-05/0.3282, allocations: 30.27 kB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.3282, allocations: 4.125 kB / 1.07 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.3282, allocations: 7.938 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3282, allocations: 0 / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.015e-05/0.3282, allocations: 7.984 kB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001336/0.3284, allocations: 145.7 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.547e-05/0.3284, allocations: 16.75 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.932e-05/0.3285, allocations: 8.953 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007387/0.3292, allocations: 457.5 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.3292, allocations: 30.56 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 2.254e-06/0.3292, allocations: 3.938 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001151/0.3294, allocations: 41.58 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.3294, allocations: 51.41 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.252e-05/0.3294, allocations: 93.98 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.3295, allocations: 25.7 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.3295, allocations: 80.14 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.3295, allocations: 0 / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.3296, allocations: 21.7 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3297, allocations: 314.8 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-06/0.3297, allocations: 0 / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.991e-06/0.3297, allocations: 0 / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.939e-05/0.3298, allocations: 16.86 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3298, allocations: 0 / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.166e-05/0.3299, allocations: 33.61 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3299, allocations: 8 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.3299, allocations: 0 / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3299, allocations: 7.922 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.032e-05/0.33, allocations: 0 / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.33, allocations: 0 / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.343e-05/0.33, allocations: 4 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-06/0.33, allocations: 4 kB / 1.071 GB, free: 7.316 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 (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.668e-05/0.3301, allocations: 111.4 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-06/0.3301, allocations: 0 / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.516e-05/0.3302, allocations: 48.69 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3302, allocations: 0 / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3302, allocations: 0 / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3302, allocations: 4 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.637e-05/0.3303, allocations: 145.7 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3303, allocations: 0 / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.214e-05/0.3303, allocations: 4.031 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3303, allocations: 0 / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.3303, allocations: 7.938 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.3303, allocations: 0 / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3304, allocations: 3.984 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.315e-05/0.3304, allocations: 53.08 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.3305, allocations: 77.11 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.3305, allocations: 11.88 kB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.977e-06/0.3305, allocations: 8.031 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.695e-05/0.3305, allocations: 3.984 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-06/0.3305, allocations: 0 / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.096e-05/0.3306, allocations: 75.28 kB / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3306, allocations: 0 / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002183/0.3308, allocations: 12 kB / 1.072 GB, free: 6.66 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 (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.0002308/0.331, allocations: 119.8 kB / 1.072 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.146e-05/0.3311, allocations: 7.984 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3311, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.867e-06/0.3311, allocations: 4 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001403/0.3313, allocations: 2.812 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.3315, allocations: 92.86 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.3317, allocations: 0.6729 MB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.268e-05/0.3318, allocations: 7.984 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.256e-05/0.3318, allocations: 7.438 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.3318, allocations: 0 / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of Templates: time 0.002517/0.3343, allocations: 408.4 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_BesselJ0.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches