Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_BesselJ1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_BesselJ1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 108 kB / 15.6 MB, free: 132 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.001373/0.001373, allocations: 194 kB / 16.53 MB, free: 6.391 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.277/1.277, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002056/0.002056, allocations: 287 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9107/0.9107, allocations: 169.3 MB / 0.4982 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 102 kB / 0.5954 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1417, allocations: 86.98 MB / 0.6803 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1): time 0.001666/0.1434, allocations: 0.5567 MB / 0.6808 GB, free: 16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000399/0.1438, allocations: 207.1 kB / 0.681 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.075e-05/0.1438, allocations: 0 / 0.681 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.245e-05/0.1439, allocations: 1.656 kB / 0.681 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.927e-06/0.1439, allocations: 0 / 0.681 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.1442, allocations: 51.84 kB / 0.6811 GB, free: 15.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.199e-05/0.1442, allocations: 7.984 kB / 0.6811 GB, free: 15.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.543e-05/0.1443, allocations: 7.984 kB / 0.6811 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.173e-05/0.1443, allocations: 0.7188 kB / 0.6811 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.492e-05/0.1443, allocations: 4.812 kB / 0.6811 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-06/0.1443, allocations: 0 / 0.6811 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1445, allocations: 63.88 kB / 0.6812 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-06/0.1445, allocations: 4.562 kB / 0.6812 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.275e-05/0.1445, allocations: 0 / 0.6812 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.408e-05/0.1446, allocations: 29.39 kB / 0.6812 GB, free: 15.63 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.1446, allocations: 3.984 kB / 0.6812 GB, free: 15.63 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1446, allocations: 0 / 0.6812 GB, free: 15.63 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1446, allocations: 0 / 0.6812 GB, free: 15.63 MB / 494.1 MB 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.0002497/0.1449, allocations: 328.2 kB / 0.6815 GB, free: 15.26 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.1449, allocations: 8.031 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.262e-05/0.145, allocations: 34.69 kB / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.796e-05/0.145, allocations: 0.9375 kB / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.081e-05/0.1451, allocations: 164.4 kB / 0.6817 GB, free: 15.01 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.1451, allocations: 4.359 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-06/0.1451, allocations: 4.375 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.276e-05/0.1452, allocations: 26.27 kB / 0.6818 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1452, allocations: 3.938 kB / 0.6818 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.172e-06/0.1452, allocations: 0 / 0.6818 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1452, allocations: 4 kB / 0.6818 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.646e-05/0.1452, allocations: 4 kB / 0.6818 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00011/0.1453, allocations: 149.7 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.316e-05/0.1454, allocations: 18.52 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.309e-05/0.1454, allocations: 8.953 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006544/0.1461, allocations: 461.5 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.1461, allocations: 30.56 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1461, allocations: 0 / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001107/0.1462, allocations: 41.58 kB / 0.6824 GB, free: 14.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.1463, allocations: 51.41 kB / 0.6825 GB, free: 14.03 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.763e-05/0.1463, allocations: 89.98 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.1463, allocations: 33.64 kB / 0.6826 GB, free: 13.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.935e-05/0.1463, allocations: 80.14 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.1464, allocations: 288 / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.838e-05/0.1464, allocations: 17.72 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.229e-05/0.1465, allocations: 314.8 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.386e-06/0.1465, allocations: 0 / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-06/0.1465, allocations: 0 / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.35e-05/0.1465, allocations: 12.92 kB / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.1465, allocations: 0 / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.618e-05/0.1466, allocations: 33.64 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.1466, allocations: 8 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1466, allocations: 3.938 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.1466, allocations: 3.938 kB / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.316e-05/0.1467, allocations: 3.984 kB / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.506e-06/0.1467, allocations: 0 / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.012e-05/0.1467, allocations: 3.938 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.1467, allocations: 8 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB 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 5.211e-05/0.1468, allocations: 110.5 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.695e-06/0.1468, allocations: 3.906 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.433e-05/0.1468, allocations: 40.77 kB / 0.6832 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1468, allocations: 0 / 0.6832 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1469, allocations: 3.984 kB / 0.6832 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1469, allocations: 0 / 0.6832 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.227e-05/0.1469, allocations: 149.7 kB / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1469, allocations: 0 / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.064e-05/0.147, allocations: 7.969 kB / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.147, allocations: 0 / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.147, allocations: 3.938 kB / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.147, allocations: 4 kB / 0.6834 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.147, allocations: 0 / 0.6834 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.362e-05/0.147, allocations: 53.12 kB / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/0.1471, allocations: 77.11 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.101e-05/0.1471, allocations: 3.938 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.833e-06/0.1471, allocations: 8.031 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.328e-06/0.1471, allocations: 4 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.1471, allocations: 0 / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.946e-05/0.1472, allocations: 79.22 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1472, allocations: 0 / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001987/0.1474, allocations: 15.98 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB 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.0003487/0.1477, allocations: 0.6202 MB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.723e-05/0.1478, allocations: 4 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1478, allocations: 0 / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.841e-06/0.1478, allocations: 0 / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.1479, allocations: 12.09 kB / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002489/0.1482, allocations: 116.9 kB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.1484, allocations: 0.669 MB / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.096e-05/0.1484, allocations: 3.984 kB / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.267e-05/0.1484, allocations: 11.44 kB / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1484, allocations: 0 / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.014/0.1624, allocations: 1.127 MB / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.688/6.85, allocations: 16 kB / 0.6861 GB, free: 10.15 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_BesselJ1.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ1.pipe 2>&1)