Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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/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.Examples.BesselJ0,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BesselJ0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.BesselJ0,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BesselJ0",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.001173/0.001173, 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.001057/0.001057, allocations: 194.7 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002023/0.002023, allocations: 278.7 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9315/0.9315, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 94.22 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1504, allocations: 86.99 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BesselJ0): time 0.002781/0.1532, allocations: 1.418 MB / 0.6817 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004977/0.1537, allocations: 241.8 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.526e-05/0.1538, allocations: 0 / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.028e-05/0.1538, allocations: 4.891 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.695e-05/0.1539, allocations: 7.938 kB / 0.6819 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.1542, allocations: 59.81 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.723e-05/0.1543, allocations: 23.88 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.649e-05/0.1544, allocations: 7.984 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.69e-05/0.1544, allocations: 8 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.614e-05/0.1545, allocations: 15.92 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.917e-06/0.1545, allocations: 0 / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.1546, allocations: 59.88 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.1546, allocations: 7.984 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.1547, allocations: 11.94 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.1548, allocations: 48.2 kB / 0.6821 GB, free: 14.67 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1548, allocations: 0 / 0.6821 GB, free: 14.67 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1548, allocations: 0 / 0.6821 GB, free: 14.67 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1548, allocations: 0 / 0.6821 GB, free: 14.67 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004116/0.1553, allocations: 347.4 kB / 0.6825 GB, free: 14.28 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.1553, allocations: 11.97 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.124e-05/0.1553, allocations: 34.75 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.387e-05/0.1554, allocations: 4.938 kB / 0.6825 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.1555, allocations: 164.4 kB / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.1555, allocations: 4.375 kB / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.1555, allocations: 8.375 kB / 0.6827 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/0.1557, allocations: 50.17 kB / 0.6827 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1557, allocations: 7.875 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1557, allocations: 7.984 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1557, allocations: 0 / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.1559, allocations: 31.97 kB / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000285/0.1562, allocations: 249 kB / 0.683 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.1563, allocations: 38.5 kB / 0.6831 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.221e-05/0.1564, allocations: 16.91 kB / 0.6831 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006327/0.157, allocations: 465.4 kB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.1571, allocations: 30.56 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1571, allocations: 0 / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003332/0.1574, allocations: 85.55 kB / 0.6836 GB, free: 12.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.1575, allocations: 55.53 kB / 0.6837 GB, free: 12.81 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.254e-05/0.1575, allocations: 97.84 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1576, allocations: 29.7 kB / 0.6838 GB, free: 12.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.116e-05/0.1576, allocations: 84.14 kB / 0.6839 GB, free: 12.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.1576, allocations: 7.844 kB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.1577, allocations: 9.719 kB / 0.6839 GB, free: 12.56 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.406e-05/0.1578, allocations: 318.8 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.556e-05/0.1579, allocations: 23.91 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.952e-05/0.1579, allocations: 15.98 kB / 0.6842 GB, free: 12.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.1581, allocations: 36.83 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1581, allocations: 3.938 kB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00019/0.1583, allocations: 69.72 kB / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.1583, allocations: 4 kB / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1583, allocations: 0 / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.1583, allocations: 0 / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.873e-05/0.1584, allocations: 11.98 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1584, allocations: 0 / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.565e-05/0.1585, allocations: 4 kB / 0.6844 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.1585, allocations: 7.922 kB / 0.6844 GB, free: 12.05 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 (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 6.028e-05/0.1586, allocations: 122.4 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.1586, allocations: 4 kB / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.1588, allocations: 64.78 kB / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1588, allocations: 0 / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1588, allocations: 0 / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1588, allocations: 0 / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.159, allocations: 165.6 kB / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.159, allocations: 0 / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.626e-05/0.159, allocations: 8.031 kB / 0.6847 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1591, allocations: 0 / 0.6847 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.1591, allocations: 4 kB / 0.6847 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.1591, allocations: 7.984 kB / 0.6847 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.1591, allocations: 11.92 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.1593, allocations: 167.3 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.878e-05/0.1594, allocations: 85.12 kB / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.1594, allocations: 0 / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.229e-05/0.1594, allocations: 4 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.1595, allocations: 7.984 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-06/0.1595, allocations: 0 / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.94e-05/0.1595, allocations: 79.28 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1595, allocations: 0 / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.1598, allocations: 20 kB / 0.6851 GB, free: 11.22 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 (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.0005425/0.1603, allocations: 0.7166 MB / 0.6858 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.1605, allocations: 36 kB / 0.6858 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1605, allocations: 0 / 0.6858 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.734e-05/0.1606, allocations: 23.97 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/0.1609, allocations: 7.766 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000419/0.1613, allocations: 139.3 kB / 0.686 GB, free: 10.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.1615, allocations: 0.6807 MB / 0.6867 GB, free: 9.527 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.178e-05/0.1615, allocations: 4 kB / 0.6867 GB, free: 9.523 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.397e-05/0.1616, allocations: 7.438 kB / 0.6867 GB, free: 9.516 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1616, allocations: 0 / 0.6867 GB, free: 9.516 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.1784, allocations: 1.489 MB / 0.6881 GB, free: 8.094 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.827/7.006, allocations: 15.92 kB / 0.6881 GB, free: 8.086 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ0.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ0.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ0.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ0.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ0_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_Examples_BesselJ0.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ0.pipe 2>&1)