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.005113/0.005113, allocations: 103.6 kB / 15.74 MB, free: 6.039 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.001231/0.001231, allocations: 201 kB / 16.68 MB, free: 5.965 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002356/0.002356, allocations: 275 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9566/0.9566, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 105 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1744, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BesselJ0): time 0.002742/0.1771, allocations: 1.423 MB / 0.7673 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006704/0.1778, allocations: 240.1 kB / 0.7675 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.417e-05/0.1779, allocations: 0 / 0.7675 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.141e-05/0.1779, allocations: 3.938 kB / 0.7675 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.983e-05/0.178, allocations: 3.984 kB / 0.7675 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.1785, allocations: 59.83 kB / 0.7676 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.477e-05/0.1786, allocations: 23.92 kB / 0.7676 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.1787, allocations: 19.86 kB / 0.7676 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.873e-05/0.1788, allocations: 8 kB / 0.7676 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.802e-05/0.1788, allocations: 7.922 kB / 0.7677 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.1788, allocations: 4 kB / 0.7677 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.179, allocations: 59.89 kB / 0.7677 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.494e-05/0.179, allocations: 7.984 kB / 0.7677 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.376e-05/0.1791, allocations: 11.92 kB / 0.7677 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001886/0.1793, allocations: 52.14 kB / 0.7678 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1793, allocations: 0 / 0.7678 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.593e-06/0.1793, allocations: 0 / 0.7678 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.513e-06/0.1793, allocations: 4 kB / 0.7678 GB, free: 7 MB / 0.5606 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.0006003/0.1799, allocations: 347.3 kB / 0.7681 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.327e-05/0.18, allocations: 11.97 kB / 0.7681 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.049e-05/0.1801, allocations: 30.75 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.946e-05/0.1801, allocations: 4.938 kB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.1803, allocations: 172.3 kB / 0.7683 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.1803, allocations: 384 / 0.7683 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.1803, allocations: 4.375 kB / 0.7683 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.1806, allocations: 58.17 kB / 0.7684 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1806, allocations: 3.938 kB / 0.7684 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.1806, allocations: 4 kB / 0.7684 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1806, allocations: 0 / 0.7684 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.1808, allocations: 27.97 kB / 0.7684 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.1813, allocations: 253 kB / 0.7687 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.1814, allocations: 46.44 kB / 0.7687 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.781e-05/0.1815, allocations: 20.91 kB / 0.7687 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008496/0.1824, allocations: 457.5 kB / 0.7692 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.1825, allocations: 34.56 kB / 0.7692 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.402e-06/0.1825, allocations: 0 / 0.7692 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003893/0.1829, allocations: 81.64 kB / 0.7693 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.1829, allocations: 51.41 kB / 0.7693 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.611e-05/0.183, allocations: 97.98 kB / 0.7694 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.183, allocations: 29.83 kB / 0.7694 GB, free: 5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.1831, allocations: 88.08 kB / 0.7695 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.1831, allocations: 7.953 kB / 0.7695 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.1831, allocations: 9.719 kB / 0.7695 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1832, allocations: 314.8 kB / 0.7698 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.027e-05/0.1833, allocations: 19.97 kB / 0.7699 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.887e-05/0.1834, allocations: 15.98 kB / 0.7699 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.1835, allocations: 40.89 kB / 0.7699 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1836, allocations: 3.938 kB / 0.7699 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001866/0.1837, allocations: 61.66 kB / 0.77 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1838, allocations: 11.94 kB / 0.77 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1838, allocations: 48 / 0.77 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.1838, allocations: 8.016 kB / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.826e-05/0.1839, allocations: 15.92 kB / 0.77 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1839, allocations: 0 / 0.77 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.468e-05/0.184, allocations: 7.984 kB / 0.77 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-06/0.184, allocations: 3.938 kB / 0.77 GB, free: 4.375 MB / 0.5606 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 6.387e-05/0.184, allocations: 114.4 kB / 0.7701 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.1841, allocations: 7.953 kB / 0.7701 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002114/0.1843, allocations: 68.78 kB / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1843, allocations: 0 / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1843, allocations: 0 / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1843, allocations: 0 / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.1845, allocations: 161.6 kB / 0.7704 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1845, allocations: 0 / 0.7704 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.328e-05/0.1845, allocations: 8 kB / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1845, allocations: 0 / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.1846, allocations: 0 / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1846, allocations: 7.922 kB / 0.7704 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1846, allocations: 4.031 kB / 0.7704 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.1848, allocations: 159.5 kB / 0.7705 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.1849, allocations: 89.09 kB / 0.7706 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.1849, allocations: 0 / 0.7706 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.142e-05/0.185, allocations: 4 kB / 0.7706 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.653e-05/0.185, allocations: 8.016 kB / 0.7706 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.185, allocations: 4 kB / 0.7706 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.968e-05/0.1851, allocations: 79.28 kB / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.31e-07/0.1851, allocations: 0 / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002414/0.1853, allocations: 15.94 kB / 0.7707 GB, free: 3.562 MB / 0.5606 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.0006502/0.186, allocations: 0.724 MB / 0.7714 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002136/0.1862, allocations: 31.97 kB / 0.7715 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1862, allocations: 4.094 kB / 0.7715 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.36e-05/0.1863, allocations: 23.97 kB / 0.7715 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.1865, allocations: 0 / 0.7715 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005073/0.187, allocations: 146.1 kB / 0.7716 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.1873, allocations: 0.6768 MB / 0.7723 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.845e-05/0.1874, allocations: 4 kB / 0.7723 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.838e-05/0.1874, allocations: 15.5 kB / 0.7723 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of SimCode: time 5.61e-07/0.1874, allocations: 3.938 kB / 0.7723 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.2057, allocations: 1.524 MB / 0.7738 GB, free: 416 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.208/7.413, allocations: 11.53 kB / 0.7738 GB, free: 408 kB / 0.5606 GB (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)