Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: translateModel(Buildings.Utilities.Math.Functions.Examples.BesselJ0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J0",fileNamePrefix="Buildings_9_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_9_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.001592/0.001598, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002006/0.002006, allocations: 194.9 kB / 16.14 MB, free: 6.645 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.503/1.503, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.489/2.489, allocations: 390.2 MB / 0.6642 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 71.89 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8522/0.8536, allocations: 140.4 MB / 0.9489 GB, free: 9.371 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.BesselJ0): time 0.002026/0.8557, allocations: 0.6495 MB / 0.9496 GB, free: 8.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005369/0.8563, allocations: 199.5 kB / 0.9497 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.074e-05/0.8563, allocations: 1.375 kB / 0.9497 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.668e-05/0.8563, allocations: 0 / 0.9497 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.74e-06/0.8564, allocations: 0 / 0.9497 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.8567, allocations: 31.09 kB / 0.9498 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.487e-05/0.8568, allocations: 5.375 kB / 0.9498 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.216e-05/0.8568, allocations: 5.359 kB / 0.9498 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.574e-05/0.8568, allocations: 3.938 kB / 0.9498 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.297e-05/0.8569, allocations: 5.359 kB / 0.9498 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.827e-06/0.8569, allocations: 4 kB / 0.9498 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.8571, allocations: 60.77 kB / 0.9499 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.055e-05/0.8571, allocations: 0 / 0.9499 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.297e-05/0.8571, allocations: 1.375 kB / 0.9499 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.8573, allocations: 32.31 kB / 0.9499 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.8573, allocations: 0 / 0.9499 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.865e-06/0.8573, allocations: 1.375 kB / 0.9499 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.15e-05/0.8573, allocations: 0 / 0.9499 GB, free: 8.637 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002821/0.8576, allocations: 329 kB / 0.9502 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.8576, allocations: 13.62 kB / 0.9502 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.23e-05/0.8577, allocations: 0.9375 kB / 0.9502 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.652e-05/0.8578, allocations: 160.4 kB / 0.9504 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.8578, allocations: 1.75 kB / 0.9504 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.8578, allocations: 384 / 0.9504 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.8579, allocations: 35.56 kB / 0.9504 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.8579, allocations: 5.547 kB / 0.9504 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.8579, allocations: 3.938 kB / 0.9504 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.8579, allocations: 0 / 0.9504 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.11e-05/0.858, allocations: 1.375 kB / 0.9504 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.8581, allocations: 151.1 kB / 0.9506 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.927e-05/0.8582, allocations: 15.95 kB / 0.9506 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.81e-05/0.8582, allocations: 6.234 kB / 0.9506 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007992/0.859, allocations: 460.1 kB / 0.951 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.859, allocations: 39.81 kB / 0.9511 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.633e-06/0.859, allocations: 0 / 0.9511 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.8592, allocations: 33.77 kB / 0.9511 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.8592, allocations: 56.77 kB / 0.9511 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.374e-05/0.8593, allocations: 89.86 kB / 0.9512 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.8593, allocations: 25.7 kB / 0.9513 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.044e-05/0.8593, allocations: 80.27 kB / 0.9513 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.113e-05/0.8594, allocations: 9.281 kB / 0.9513 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/0.8594, allocations: 15.09 kB / 0.9514 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.57e-05/0.8595, allocations: 312.2 kB / 0.9517 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.341e-05/0.8595, allocations: 0 / 0.9517 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.301e-06/0.8595, allocations: 1.375 kB / 0.9517 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.205e-05/0.8595, allocations: 11.55 kB / 0.9517 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.8595, allocations: 0 / 0.9517 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.489e-05/0.8596, allocations: 39.25 kB / 0.9517 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.8596, allocations: 5.5 kB / 0.9517 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.8596, allocations: 0 / 0.9517 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.8596, allocations: 3.938 kB / 0.9517 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.448e-05/0.8597, allocations: 2.75 kB / 0.9517 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.8597, allocations: 0 / 0.9517 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.089e-05/0.8597, allocations: 3.938 kB / 0.9517 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.8597, allocations: 1.375 kB / 0.9517 GB, free: 6.539 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 (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.616e-05/0.8598, allocations: 111.2 kB / 0.9518 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.8598, allocations: 4.031 kB / 0.9518 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.125e-05/0.8599, allocations: 48.81 kB / 0.9519 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.8599, allocations: 1.375 kB / 0.9519 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.86, allocations: 0 / 0.9519 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.86, allocations: 0 / 0.9519 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.4e-05/0.86, allocations: 147.1 kB / 0.952 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.8601, allocations: 3.984 kB / 0.952 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.228e-05/0.8601, allocations: 2.75 kB / 0.952 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.8601, allocations: 0 / 0.952 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.8601, allocations: 3.938 kB / 0.952 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.8601, allocations: 5.406 kB / 0.952 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.8601, allocations: 0 / 0.952 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.2e-05/0.8602, allocations: 54.58 kB / 0.9521 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.942e-05/0.8602, allocations: 82.47 kB / 0.9522 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.8602, allocations: 3.938 kB / 0.9522 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.324e-06/0.8602, allocations: 0 / 0.9522 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.8603, allocations: 5.375 kB / 0.9522 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-06/0.8603, allocations: 4.031 kB / 0.9522 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.799e-05/0.8603, allocations: 76.66 kB / 0.9522 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.8603, allocations: 3.938 kB / 0.9523 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002353/0.8605, allocations: 11 kB / 0.9523 GB, free: 5.91 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 (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.0002715/0.8608, allocations: 116.8 kB / 0.9524 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.867e-05/0.8609, allocations: 8.5 kB / 0.9524 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.8609, allocations: 0 / 0.9524 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.185e-05/0.8609, allocations: 6.281 kB / 0.9524 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.8611, allocations: 2.781 kB / 0.9524 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001759/0.8613, allocations: 77.59 kB / 0.9525 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.8614, allocations: 0.6741 MB / 0.9531 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.298e-05/0.8614, allocations: 1.094 kB / 0.9531 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.055e-05/0.8614, allocations: 7.438 kB / 0.9531 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of SimCode: time 5.91e-07/0.8614, allocations: 5.438 kB / 0.9531 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of Templates: time 0.002759/0.8642, allocations: 406 kB / 0.9535 GB, free: 4.793 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_BesselJ0.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.BesselJ0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches