Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 117.1 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0029/0.0029, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.512/1.512, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.991/2.991, allocations: 0.49 GB / 0.7923 GB, free: 1.359 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BesselJ1,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_BesselJ1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BesselJ1,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_BesselJ1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 63.89 kB / 1.15 GB, free: 14.56 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9592/0.9613, allocations: 176.1 MB / 1.321 GB, free: 7.488 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BesselJ1): time 0.00267/0.964, allocations: 1.454 MB / 1.323 GB, free: 6.348 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00058/0.9645, allocations: 254.6 kB / 1.323 GB, free: 6.156 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.104e-05/0.9646, allocations: 0 / 1.323 GB, free: 6.156 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.546e-05/0.9646, allocations: 3.938 kB / 1.323 GB, free: 6.152 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.622e-05/0.9647, allocations: 5.188 kB / 1.323 GB, free: 6.148 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.965, allocations: 63.06 kB / 1.323 GB, free: 6.109 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.857e-05/0.9651, allocations: 24.11 kB / 1.323 GB, free: 6.094 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.126e-05/0.9652, allocations: 6.516 kB / 1.323 GB, free: 6.09 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.902e-05/0.9652, allocations: 7.5 kB / 1.323 GB, free: 6.086 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.77e-05/0.9653, allocations: 10.27 kB / 1.323 GB, free: 6.078 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.597e-06/0.9653, allocations: 2.188 kB / 1.323 GB, free: 6.078 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.9654, allocations: 65.16 kB / 1.323 GB, free: 6.043 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.9654, allocations: 4 kB / 1.323 GB, free: 6.039 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.698e-05/0.9655, allocations: 18.02 kB / 1.323 GB, free: 6.023 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.9656, allocations: 50.77 kB / 1.323 GB, free: 5.992 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.9656, allocations: 3.984 kB / 1.323 GB, free: 5.988 MB / 1.014 GB Notification: Performance of FrontEnd: time 9.82e-07/0.9656, allocations: 0 / 1.323 GB, free: 5.988 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.9656, allocations: 5.188 kB / 1.323 GB, free: 5.984 MB / 1.014 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.0004873/0.9661, allocations: 343.2 kB / 1.324 GB, free: 5.613 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.9661, allocations: 13.17 kB / 1.324 GB, free: 5.609 MB / 1.014 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.613e-05/0.9661, allocations: 1.281 kB / 1.324 GB, free: 5.609 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.794e-05/0.9662, allocations: 34.75 kB / 1.324 GB, free: 5.566 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.934e-05/0.9662, allocations: 3.125 kB / 1.324 GB, free: 5.566 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.9663, allocations: 173.4 kB / 1.324 GB, free: 5.359 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.9663, allocations: 1.125 kB / 1.324 GB, free: 5.359 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-06/0.9663, allocations: 1.406 kB / 1.324 GB, free: 5.359 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.9665, allocations: 53.52 kB / 1.324 GB, free: 5.312 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.9665, allocations: 0 / 1.324 GB, free: 5.312 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.9665, allocations: 1.188 kB / 1.324 GB, free: 5.312 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.9665, allocations: 0 / 1.324 GB, free: 5.312 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.9667, allocations: 41.98 kB / 1.324 GB, free: 5.289 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003698/0.9671, allocations: 245.3 kB / 1.324 GB, free: 5.008 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.9672, allocations: 38.2 kB / 1.324 GB, free: 4.973 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.922e-05/0.9673, allocations: 19.19 kB / 1.324 GB, free: 4.961 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006999/0.968, allocations: 462.5 kB / 1.325 GB, free: 4.461 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.9681, allocations: 32.09 kB / 1.325 GB, free: 4.422 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.9681, allocations: 0 / 1.325 GB, free: 4.422 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.000364/0.9684, allocations: 92.61 kB / 1.325 GB, free: 4.355 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.9685, allocations: 51.41 kB / 1.325 GB, free: 4.293 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.9686, allocations: 103.2 kB / 1.325 GB, free: 4.188 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.9686, allocations: 25.7 kB / 1.325 GB, free: 4.156 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.889e-05/0.9687, allocations: 89.44 kB / 1.325 GB, free: 4.066 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.9687, allocations: 5.078 kB / 1.325 GB, free: 4.062 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.9687, allocations: 16.53 kB / 1.325 GB, free: 4.043 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.9689, allocations: 315 kB / 1.325 GB, free: 3.727 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.599e-05/0.9689, allocations: 12.8 kB / 1.325 GB, free: 3.723 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.777e-05/0.969, allocations: 22.41 kB / 1.325 GB, free: 3.711 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.9692, allocations: 43.2 kB / 1.326 GB, free: 3.684 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.9692, allocations: 64 / 1.326 GB, free: 3.684 MB / 1.014 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001978/0.9694, allocations: 68.31 kB / 1.326 GB, free: 3.633 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.9694, allocations: 6.156 kB / 1.326 GB, free: 3.633 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.9694, allocations: 0 / 1.326 GB, free: 3.633 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.9694, allocations: 0 / 1.326 GB, free: 3.633 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.437e-05/0.9695, allocations: 10.02 kB / 1.326 GB, free: 3.629 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.9695, allocations: 0 / 1.326 GB, free: 3.629 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.491e-05/0.9695, allocations: 4.719 kB / 1.326 GB, free: 3.629 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.9696, allocations: 8.016 kB / 1.326 GB, free: 3.621 MB / 1.014 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 9.887e-05/0.9697, allocations: 120.3 kB / 1.326 GB, free: 3.496 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.9697, allocations: 9.297 kB / 1.326 GB, free: 3.488 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002335/0.9699, allocations: 73.44 kB / 1.326 GB, free: 3.43 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.9699, allocations: 0.9375 kB / 1.326 GB, free: 3.43 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.9699, allocations: 0 / 1.326 GB, free: 3.43 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.9699, allocations: 1.531 kB / 1.326 GB, free: 3.43 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.9701, allocations: 161.2 kB / 1.326 GB, free: 3.227 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.9701, allocations: 5.203 kB / 1.326 GB, free: 3.223 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.818e-05/0.9702, allocations: 9.578 kB / 1.326 GB, free: 3.219 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.9702, allocations: 0 / 1.326 GB, free: 3.219 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.9702, allocations: 1.344 kB / 1.326 GB, free: 3.219 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.9702, allocations: 0 / 1.326 GB, free: 3.219 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.9702, allocations: 0 / 1.326 GB, free: 3.219 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.9704, allocations: 167.6 kB / 1.326 GB, free: 3.062 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 4.504e-05/0.9705, allocations: 78.2 kB / 1.326 GB, free: 2.969 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.9705, allocations: 3.984 kB / 1.326 GB, free: 2.965 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.534e-05/0.9706, allocations: 7.625 kB / 1.326 GB, free: 2.961 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.9706, allocations: 1.719 kB / 1.326 GB, free: 2.961 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.9706, allocations: 9.422 kB / 1.326 GB, free: 2.953 MB / 1.014 GB Notification: Performance of sorting global known variables: time 4.814e-05/0.9707, allocations: 77.72 kB / 1.326 GB, free: 2.879 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.9707, allocations: 0 / 1.326 GB, free: 2.879 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002392/0.9709, allocations: 21.69 kB / 1.326 GB, free: 2.871 MB / 1.014 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.0006854/0.9716, allocations: 0.718 MB / 1.327 GB, free: 2.176 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002284/0.9718, allocations: 36.66 kB / 1.327 GB, free: 2.16 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.9718, allocations: 4 kB / 1.327 GB, free: 2.156 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 9.054e-05/0.9719, allocations: 19.88 kB / 1.327 GB, free: 2.148 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.9721, allocations: 1.281 kB / 1.327 GB, free: 2.148 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004289/0.9726, allocations: 151.6 kB / 1.327 GB, free: 1.984 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.9729, allocations: 0.6766 MB / 1.328 GB, free: 1.285 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.891e-05/0.9729, allocations: 1.188 kB / 1.328 GB, free: 1.285 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.286e-05/0.9729, allocations: 8.625 kB / 1.328 GB, free: 1.277 MB / 1.014 GB Notification: Performance of SimCode: time 2.81e-07/0.9729, allocations: 0 / 1.328 GB, free: 1.277 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0188/0.9917, allocations: 1.559 MB / 1.329 GB, free: 408 kB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.835/9.827, allocations: 10.77 kB / 1.329 GB, free: 400 kB / 1.014 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_BesselJ1_fmu --startTime=0 --stopTime=30 --stepSize=0.012 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_BesselJ1.fmu > Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_BesselJ1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.BesselJ1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.296629566990305]