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.001101/0.001101, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.00101/0.00101, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.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.395/2.395, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003629, allocations: 12 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.95/0.9504, allocations: 142.3 MB / 0.9535 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ1): time 0.001847/0.9523, allocations: 1.142 MB / 0.9546 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005935/0.9529, allocations: 233.7 kB / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.135e-05/0.953, allocations: 0 / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.844e-05/0.953, allocations: 0 / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.682e-05/0.9531, allocations: 5.609 kB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004033/0.9535, allocations: 54.75 kB / 0.9549 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.488e-05/0.9536, allocations: 8.125 kB / 0.9549 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.9537, allocations: 6.328 kB / 0.9549 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.439e-05/0.9537, allocations: 7.438 kB / 0.9549 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.501e-05/0.9538, allocations: 14.47 kB / 0.9549 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.9538, allocations: 1.281 kB / 0.9549 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.954, allocations: 60.92 kB / 0.955 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.937e-06/0.954, allocations: 1.281 kB / 0.955 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/0.954, allocations: 31.03 kB / 0.955 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.9541, allocations: 39.16 kB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.9542, allocations: 0 / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 4.058e-06/0.9542, allocations: 1.062 kB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.9542, allocations: 0 / 0.9551 GB, free: 6.859 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.0004294/0.9546, allocations: 348 kB / 0.9554 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.9547, allocations: 9.938 kB / 0.9554 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.9547, allocations: 5.422 kB / 0.9554 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.449e-05/0.9548, allocations: 168.5 kB / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.9548, allocations: 0 / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.9548, allocations: 1.281 kB / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.955, allocations: 53.94 kB / 0.9556 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.9551, allocations: 3.984 kB / 0.9556 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.9551, allocations: 0 / 0.9556 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.9551, allocations: 1.438 kB / 0.9556 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.9553, allocations: 51.92 kB / 0.9557 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.9556, allocations: 248.7 kB / 0.9559 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.9557, allocations: 48.62 kB / 0.956 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006305/0.9564, allocations: 459.4 kB / 0.9564 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.9564, allocations: 39.72 kB / 0.9564 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.9564, allocations: 0 / 0.9564 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003793/0.9568, allocations: 102.5 kB / 0.9565 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.9568, allocations: 52.56 kB / 0.9566 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.399e-05/0.9569, allocations: 102.6 kB / 0.9567 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.9569, allocations: 25.7 kB / 0.9567 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.663e-05/0.957, allocations: 89.03 kB / 0.9568 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.957, allocations: 5.312 kB / 0.9568 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.957, allocations: 0 / 0.9568 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.55e-05/0.9571, allocations: 315.9 kB / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.341e-05/0.9572, allocations: 26.2 kB / 0.9571 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.465e-05/0.9572, allocations: 22.38 kB / 0.9572 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.226e-05/0.9573, allocations: 21.7 kB / 0.9572 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.9573, allocations: 4 kB / 0.9572 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001892/0.9575, allocations: 70.95 kB / 0.9572 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.9575, allocations: 4.125 kB / 0.9572 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.9576, allocations: 5.234 kB / 0.9573 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.9576, allocations: 192 / 0.9573 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.344e-05/0.9577, allocations: 12.44 kB / 0.9573 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.9577, allocations: 3.953 kB / 0.9573 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.77e-05/0.9577, allocations: 10.58 kB / 0.9573 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.9578, allocations: 1.188 kB / 0.9573 GB, free: 4.586 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.704e-05/0.9578, allocations: 112 kB / 0.9574 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.122e-05/0.9578, allocations: 8.953 kB / 0.9574 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.9581, allocations: 80.66 kB / 0.9575 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.9581, allocations: 3.984 kB / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.9581, allocations: 5.219 kB / 0.9575 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.9581, allocations: 3.953 kB / 0.9575 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.9582, allocations: 154.2 kB / 0.9576 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.9583, allocations: 4.031 kB / 0.9576 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-05/0.9583, allocations: 13.14 kB / 0.9576 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.9583, allocations: 0 / 0.9576 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.9583, allocations: 1.281 kB / 0.9577 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.9583, allocations: 0 / 0.9577 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.9583, allocations: 0 / 0.9577 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.9586, allocations: 184.8 kB / 0.9578 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.016e-05/0.9586, allocations: 77.8 kB / 0.9579 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.9586, allocations: 1.219 kB / 0.9579 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.398e-05/0.9587, allocations: 13.77 kB / 0.9579 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.9587, allocations: 5.094 kB / 0.9579 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.9588, allocations: 4.969 kB / 0.9579 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.659e-05/0.9588, allocations: 86.73 kB / 0.958 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.9588, allocations: 0 / 0.958 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002339/0.959, allocations: 13.47 kB / 0.958 GB, free: 3.836 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002024/0.9592, allocations: 120.1 kB / 0.9581 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002246/0.9595, allocations: 49.98 kB / 0.9582 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.9595, allocations: 1.094 kB / 0.9582 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.04e-05/0.9596, allocations: 31.73 kB / 0.9582 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001648/0.9598, allocations: 1.281 kB / 0.9582 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002668/0.96, allocations: 105.1 kB / 0.9583 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.9602, allocations: 0.6822 MB / 0.959 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.094e-05/0.9602, allocations: 1.062 kB / 0.959 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.9602, allocations: 8.906 kB / 0.959 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.9602, allocations: 4.062 kB / 0.959 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of Templates: time 0.002961/0.9632, allocations: 0.5752 MB / 0.9596 GB, free: 2.582 MB / 0.7169 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 -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","../files/Buildings_9_Buildings.Utilities.Math.Examples.BesselJ1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches