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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Utilities.Math.Examples.BesselJ1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1") translateModel(Buildings.Utilities.Math.Examples.BesselJ1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J1.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 105.6 kB / 16.37 MB, free: 6.477 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.001843/0.001843, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.185/2.185, allocations: 390.3 MB / 0.6655 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 66.03 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2477, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ1): time 0.002512/0.2502, allocations: 1.439 MB / 0.9525 GB, free: 6.594 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005225/0.2507, allocations: 254.2 kB / 0.9528 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.383e-05/0.2508, allocations: 0 / 0.9528 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.709e-05/0.2508, allocations: 0 / 0.9528 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.738e-05/0.2509, allocations: 11.88 kB / 0.9528 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.2512, allocations: 59.83 kB / 0.9528 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.76e-05/0.2513, allocations: 19.97 kB / 0.9529 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.463e-05/0.2514, allocations: 8 kB / 0.9529 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.717e-05/0.2514, allocations: 7.984 kB / 0.9529 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.3e-05/0.2514, allocations: 11.88 kB / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.2515, allocations: 4 kB / 0.9529 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.2516, allocations: 59.94 kB / 0.9529 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.496e-05/0.2516, allocations: 11.97 kB / 0.953 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.251e-05/0.2517, allocations: 11.94 kB / 0.953 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.2518, allocations: 51.88 kB / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.2518, allocations: 0 / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2518, allocations: 3.938 kB / 0.953 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.445e-06/0.2518, allocations: 0 / 0.953 GB, free: 6.086 MB / 0.7325 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.0004231/0.2523, allocations: 343.4 kB / 0.9533 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2523, allocations: 12.03 kB / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.194e-05/0.2523, allocations: 0.9375 kB / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.2524, allocations: 176.3 kB / 0.9535 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.2525, allocations: 384 / 0.9535 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.2525, allocations: 4.375 kB / 0.9535 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.2526, allocations: 50.23 kB / 0.9536 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.2527, allocations: 192 / 0.9536 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.2527, allocations: 3.938 kB / 0.9536 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2527, allocations: 0 / 0.9536 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.2528, allocations: 31.97 kB / 0.9536 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002762/0.2531, allocations: 248.9 kB / 0.9538 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.2533, allocations: 46.48 kB / 0.9539 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.966e-05/0.2533, allocations: 20.91 kB / 0.9539 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006308/0.254, allocations: 461.5 kB / 0.9544 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.254, allocations: 34.56 kB / 0.9544 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.322e-06/0.254, allocations: 3.938 kB / 0.9544 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003231/0.2544, allocations: 85.67 kB / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.2544, allocations: 55.41 kB / 0.9545 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.48e-05/0.2545, allocations: 101.8 kB / 0.9546 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.2545, allocations: 25.7 kB / 0.9546 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.2545, allocations: 80.14 kB / 0.9547 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.2546, allocations: 3.906 kB / 0.9547 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.2546, allocations: 17.72 kB / 0.9547 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.2547, allocations: 314.8 kB / 0.955 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.117e-05/0.2548, allocations: 24.02 kB / 0.9551 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.523e-05/0.2549, allocations: 15.92 kB / 0.9551 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.255, allocations: 40.81 kB / 0.9551 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.255, allocations: 0 / 0.9551 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000179/0.2552, allocations: 69.61 kB / 0.9552 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2552, allocations: 9.875 kB / 0.9552 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2552, allocations: 0 / 0.9552 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.2552, allocations: 0 / 0.9552 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.823e-05/0.2553, allocations: 11.98 kB / 0.9552 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.2553, allocations: 4 kB / 0.9552 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.769e-05/0.2554, allocations: 11.89 kB / 0.9552 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.2554, allocations: 4 kB / 0.9552 GB, free: 3.504 MB / 0.7325 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.464e-05/0.2555, allocations: 117.8 kB / 0.9553 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/0.2555, allocations: 0 / 0.9553 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002105/0.2557, allocations: 76.72 kB / 0.9554 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2557, allocations: 0 / 0.9554 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2557, allocations: 0 / 0.9554 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.2557, allocations: 0 / 0.9554 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.2559, allocations: 161.6 kB / 0.9556 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2559, allocations: 0 / 0.9556 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.285e-05/0.256, allocations: 16.02 kB / 0.9556 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.256, allocations: 0 / 0.9556 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-06/0.256, allocations: 0 / 0.9556 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.256, allocations: 0 / 0.9556 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.256, allocations: 0 / 0.9556 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.2562, allocations: 163.5 kB / 0.9557 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.314e-05/0.2563, allocations: 89.02 kB / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.2563, allocations: 4 kB / 0.9558 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.532e-05/0.2564, allocations: 7.984 kB / 0.9558 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.128e-05/0.2564, allocations: 0 / 0.9558 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.2564, allocations: 0 / 0.9558 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.182e-05/0.2564, allocations: 79.28 kB / 0.9559 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2564, allocations: 0 / 0.9559 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002428/0.2567, allocations: 23.92 kB / 0.9559 GB, free: 2.68 MB / 0.7325 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.0001767/0.2569, allocations: 119.2 kB / 0.956 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001966/0.2571, allocations: 35.95 kB / 0.9561 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2571, allocations: 3.938 kB / 0.9561 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.746e-05/0.2572, allocations: 20.05 kB / 0.9561 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002323/0.2574, allocations: 7.938 kB / 0.9561 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002432/0.2577, allocations: 109.5 kB / 0.9562 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.2579, allocations: 0.6805 MB / 0.9569 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.023e-05/0.2579, allocations: 0 / 0.9569 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.244e-05/0.2579, allocations: 7.438 kB / 0.9569 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.2579, allocations: 0 / 0.9569 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of Templates: time 0.002669/0.2606, allocations: 0.6658 MB / 0.9575 GB, free: 0.9766 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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