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.006677/0.006677, allocations: 97.69 kB / 15.73 MB, free: 6.02 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.001441/0.001441, allocations: 190.5 kB / 16.67 MB, free: 5.938 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002328/0.002328, allocations: 296.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.021/1.021, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 95.84 kB / 0.681 GB, free: 7.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4893/0.4911, allocations: 86.98 MB / 0.7659 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BesselJ1): time 0.002476/0.4937, allocations: 1.414 MB / 0.7673 GB, free: 2.473 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0005382/0.4942, allocations: 260 kB / 0.7675 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.729e-05/0.4943, allocations: 0 / 0.7675 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.998e-05/0.4943, allocations: 0 / 0.7675 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.367e-05/0.4944, allocations: 7.922 kB / 0.7676 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003501/0.4947, allocations: 63.81 kB / 0.7676 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.019e-05/0.4948, allocations: 19.94 kB / 0.7676 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.45e-05/0.4949, allocations: 11.98 kB / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.813e-05/0.4949, allocations: 11.94 kB / 0.7677 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.548e-05/0.495, allocations: 7.984 kB / 0.7677 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.127e-06/0.495, allocations: 4 kB / 0.7677 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.4951, allocations: 63.86 kB / 0.7677 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.279e-05/0.4952, allocations: 7.938 kB / 0.7677 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.21e-05/0.4952, allocations: 8 kB / 0.7677 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.4953, allocations: 55.64 kB / 0.7678 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.4953, allocations: 0 / 0.7678 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4953, allocations: 0 / 0.7678 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.4954, allocations: 4 kB / 0.7678 GB, free: 1.957 MB / 0.5294 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.0004492/0.4958, allocations: 344.7 kB / 0.7681 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.4959, allocations: 12.03 kB / 0.7681 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.4959, allocations: 30.75 kB / 0.7682 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.453e-05/0.4959, allocations: 0.9375 kB / 0.7682 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.496, allocations: 172.3 kB / 0.7683 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.4961, allocations: 4.375 kB / 0.7683 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-06/0.4961, allocations: 384 / 0.7683 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001777/0.4963, allocations: 58.17 kB / 0.7684 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.4963, allocations: 7.922 kB / 0.7684 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.4963, allocations: 0 / 0.7684 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4963, allocations: 3.938 kB / 0.7684 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.4965, allocations: 35.95 kB / 0.7684 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003064/0.4968, allocations: 244.9 kB / 0.7687 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001237/0.4969, allocations: 46.53 kB / 0.7687 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.497, allocations: 24.84 kB / 0.7687 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006868/0.4977, allocations: 465.4 kB / 0.7692 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.4978, allocations: 30.56 kB / 0.7692 GB, free: 252 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.4978, allocations: 0 / 0.7692 GB, free: 252 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0003581/0.4981, allocations: 81.64 kB / 0.7693 GB, free: 164 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/0.4982, allocations: 51.41 kB / 0.7693 GB, free: 100 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.956e-05/0.4983, allocations: 98.03 kB / 0.7694 GB, free: 15.99 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.4983, allocations: 33.69 kB / 0.7695 GB, free: 15.95 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.4983, allocations: 80.14 kB / 0.7695 GB, free: 15.87 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.4984, allocations: 7.953 kB / 0.7696 GB, free: 15.86 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.4984, allocations: 13.72 kB / 0.7696 GB, free: 15.84 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4985, allocations: 314.8 kB / 0.7699 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.344e-05/0.4986, allocations: 15.92 kB / 0.7699 GB, free: 15.51 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.589e-05/0.4987, allocations: 23.97 kB / 0.7699 GB, free: 15.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.4988, allocations: 36.83 kB / 0.7699 GB, free: 15.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.4989, allocations: 3.938 kB / 0.7699 GB, free: 15.44 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001882/0.499, allocations: 65.66 kB / 0.77 GB, free: 15.37 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.4991, allocations: 4 kB / 0.77 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.4991, allocations: 0 / 0.77 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.4991, allocations: 4.094 kB / 0.77 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.468e-05/0.4992, allocations: 11.98 kB / 0.77 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.4992, allocations: 0 / 0.77 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.568e-05/0.4992, allocations: 7.938 kB / 0.77 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.4993, allocations: 4 kB / 0.77 GB, free: 15.34 MB / 0.545 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 7.568e-05/0.4993, allocations: 113.8 kB / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.4994, allocations: 7.953 kB / 0.7702 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.4996, allocations: 72.78 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.4996, allocations: 0 / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4996, allocations: 0 / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.4996, allocations: 0 / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.4998, allocations: 157.6 kB / 0.7704 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.4998, allocations: 4 kB / 0.7704 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.85e-05/0.4999, allocations: 11.92 kB / 0.7704 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.4999, allocations: 0 / 0.7704 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.4999, allocations: 0 / 0.7704 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4999, allocations: 4.031 kB / 0.7704 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.4999, allocations: 4 kB / 0.7704 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.5001, allocations: 159.4 kB / 0.7705 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.685e-05/0.5002, allocations: 85.09 kB / 0.7706 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.5002, allocations: 4 kB / 0.7706 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.504e-05/0.5003, allocations: 8.031 kB / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.5003, allocations: 3.984 kB / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.5003, allocations: 4 kB / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.335e-05/0.5004, allocations: 83.22 kB / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5004, allocations: 0 / 0.7707 GB, free: 14.54 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000238/0.5006, allocations: 19.94 kB / 0.7707 GB, free: 14.52 MB / 0.545 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.0006071/0.5012, allocations: 0.7296 MB / 0.7715 GB, free: 13.76 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000214/0.5015, allocations: 40 kB / 0.7715 GB, free: 13.72 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.5015, allocations: 0 / 0.7715 GB, free: 13.72 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.541e-05/0.5016, allocations: 19.97 kB / 0.7715 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.5018, allocations: 10.28 kB / 0.7715 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000398/0.5022, allocations: 139.2 kB / 0.7717 GB, free: 13.52 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.5025, allocations: 0.6768 MB / 0.7723 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.346e-05/0.5025, allocations: 4.109 kB / 0.7723 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.5025, allocations: 11.44 kB / 0.7723 GB, free: 12.8 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.5025, allocations: 0 / 0.7723 GB, free: 12.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.5186, allocations: 1.515 MB / 0.7738 GB, free: 11.37 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.28/7.799, allocations: 4.688 kB / 0.7738 GB, free: 11.37 MB / 0.545 GB (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)