Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.BesselJ1,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BesselJ1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.BesselJ1,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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.001084/0.001084, allocations: 108 kB / 15.61 MB, free: 152 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.001073/0.001073, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002066/0.002066, allocations: 282.8 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9242/0.9242, allocations: 169.3 MB / 0.4982 GB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 100.2 kB / 0.5953 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1362, allocations: 86.99 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BesselJ1): time 0.002251/0.1385, allocations: 1.419 MB / 0.6817 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004459/0.1389, allocations: 259.4 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.048e-05/0.139, allocations: 0 / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.404e-05/0.139, allocations: 0 / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.389e-05/0.139, allocations: 3.938 kB / 0.6819 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.1393, allocations: 63.81 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.112e-05/0.1394, allocations: 27.86 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.965e-05/0.1395, allocations: 4.531 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.177e-05/0.1395, allocations: 8.656 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.518e-05/0.1396, allocations: 20.62 kB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.365e-06/0.1396, allocations: 0 / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.1397, allocations: 57.84 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.568e-06/0.1397, allocations: 4 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.2e-05/0.1397, allocations: 11.94 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.1399, allocations: 52.19 kB / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1399, allocations: 0 / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.1399, allocations: 7.875 kB / 0.6822 GB, free: 14.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1399, allocations: 7.938 kB / 0.6822 GB, free: 14.66 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.0003795/0.1403, allocations: 343.4 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.1403, allocations: 12.03 kB / 0.6825 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.483e-05/0.1403, allocations: 30.75 kB / 0.6825 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.874e-05/0.1404, allocations: 0.9375 kB / 0.6826 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.389e-05/0.1405, allocations: 168.4 kB / 0.6827 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.1405, allocations: 4.375 kB / 0.6827 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-06/0.1405, allocations: 384 / 0.6827 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.1407, allocations: 50.25 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.1407, allocations: 7.922 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.1407, allocations: 3.984 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.1407, allocations: 0 / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.1409, allocations: 35.91 kB / 0.6828 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002547/0.1411, allocations: 253 kB / 0.683 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.1412, allocations: 38.5 kB / 0.6831 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.21e-05/0.1413, allocations: 20.91 kB / 0.6831 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006186/0.142, allocations: 461.5 kB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.142, allocations: 30.56 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.153e-06/0.142, allocations: 0 / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003316/0.1423, allocations: 89.48 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.532e-05/0.1424, allocations: 51.41 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.914e-05/0.1424, allocations: 106 kB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.1425, allocations: 25.7 kB / 0.6838 GB, free: 12.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.243e-05/0.1425, allocations: 80.14 kB / 0.6839 GB, free: 12.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.1425, allocations: 11.84 kB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.1425, allocations: 13.72 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.445e-05/0.1426, allocations: 318.8 kB / 0.6842 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.147e-05/0.1427, allocations: 19.97 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.968e-05/0.1428, allocations: 15.98 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.143, allocations: 40.77 kB / 0.6843 GB, free: 12.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.143, allocations: 3.938 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001782/0.1432, allocations: 65.66 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.1432, allocations: 4 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.1432, allocations: 4.094 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.1432, allocations: 0 / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.438e-05/0.1433, allocations: 15.92 kB / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.1433, allocations: 0 / 0.6844 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.027e-05/0.1433, allocations: 11.98 kB / 0.6844 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.1434, allocations: 0 / 0.6844 GB, free: 12.04 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 5.98e-05/0.1434, allocations: 110.4 kB / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.371e-05/0.1434, allocations: 4 kB / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002038/0.1437, allocations: 80.66 kB / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.1437, allocations: 0 / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1437, allocations: 0 / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1437, allocations: 0 / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.1438, allocations: 161.6 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1438, allocations: 4 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.137e-05/0.1439, allocations: 4 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1439, allocations: 0 / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1439, allocations: 4.031 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1439, allocations: 3.984 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1439, allocations: 4 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002094/0.1441, allocations: 163.3 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.1442, allocations: 85.11 kB / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.1442, allocations: 0 / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.968e-05/0.1443, allocations: 8.031 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.157e-05/0.1443, allocations: 3.984 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.1443, allocations: 4 kB / 0.685 GB, free: 11.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.425e-05/0.1443, allocations: 79.47 kB / 0.6851 GB, free: 11.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1444, allocations: 0 / 0.6851 GB, free: 11.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.1446, allocations: 20 kB / 0.6851 GB, free: 11.21 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.0005143/0.1451, allocations: 0.7164 MB / 0.6858 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.1453, allocations: 47.92 kB / 0.6859 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1453, allocations: 0 / 0.6859 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.824e-05/0.1454, allocations: 15.98 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.0002062/0.1456, allocations: 8 kB / 0.6859 GB, free: 10.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003336/0.146, allocations: 131.3 kB / 0.686 GB, free: 10.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.1462, allocations: 0.6808 MB / 0.6867 GB, free: 9.523 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.967e-05/0.1462, allocations: 4 kB / 0.6867 GB, free: 9.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.1462, allocations: 15.38 kB / 0.6867 GB, free: 9.504 MB / 494.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1462, allocations: 0 / 0.6867 GB, free: 9.504 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01627/0.1625, allocations: 1.497 MB / 0.6882 GB, free: 8.074 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.809/6.972, allocations: 11.98 kB / 0.6882 GB, free: 8.066 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ1.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ1.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ1.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ1.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.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_Examples_BesselJ1.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BesselJ1.pipe 2>&1)