Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_BesselJ0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_BesselJ0",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6967/0.6967, allocations: 141.8 MB / 149.1 MB, free: 13.5 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 195.6 kB / 182 MB, free: 10.17 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 221.3 MB / 436 MB, free: 2.73 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009334/0.0009335, allocations: 96.03 kB / 0.507 GB, free: 17.81 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001772/0.001772, allocations: 273.9 kB / 0.5884 GB, free: 4.199 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3105/0.3123, allocations: 89.65 MB / 0.676 GB, free: 137.1 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.4476, allocations: 82.79 MB / 0.7568 GB, free: 83.9 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.5618, allocations: 107.3 MB / 0.8616 GB, free: 8.5 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.5621, allocations: 72.84 kB / 0.8617 GB, free: 8.43 MB / 0.5419 GB 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.003478/0.5656, allocations: 1.249 MB / 0.8629 GB, free: 7.137 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.5656, allocations: 8 kB / 0.8629 GB, free: 7.129 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.746e-05/0.5656, allocations: 0 / 0.8629 GB, free: 7.129 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.533e-05/0.5657, allocations: 163 kB / 0.863 GB, free: 6.93 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.5658, allocations: 4 kB / 0.863 GB, free: 6.926 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.5658, allocations: 4 kB / 0.863 GB, free: 6.922 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.447e-05/0.5658, allocations: 0 / 0.863 GB, free: 6.922 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.471e-05/0.5659, allocations: 41.53 kB / 0.8631 GB, free: 6.875 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.5659, allocations: 4 kB / 0.8631 GB, free: 6.871 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.5659, allocations: 0 / 0.8631 GB, free: 6.871 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.5659, allocations: 0 / 0.8631 GB, free: 6.871 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.5661, allocations: 122.2 kB / 0.8632 GB, free: 6.715 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 2.787e-05/0.5661, allocations: 14.58 kB / 0.8632 GB, free: 6.691 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.534e-05/0.5661, allocations: 12.95 kB / 0.8632 GB, free: 6.676 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006079/0.5667, allocations: 433.5 kB / 0.8636 GB, free: 6.156 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.5668, allocations: 38.5 kB / 0.8637 GB, free: 6.109 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.5668, allocations: 8 kB / 0.8637 GB, free: 6.102 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1): time 0.0001823/0.567, allocations: 29.61 kB / 0.8637 GB, free: 6.066 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.567, allocations: 55.34 kB / 0.8638 GB, free: 6 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.847e-05/0.5671, allocations: 89 kB / 0.8639 GB, free: 5.906 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.5671, allocations: 25.7 kB / 0.8639 GB, free: 5.875 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.791e-05/0.5671, allocations: 80.14 kB / 0.864 GB, free: 5.793 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.5672, allocations: 0 / 0.864 GB, free: 5.793 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-06/0.5672, allocations: 0 / 0.864 GB, free: 5.793 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5673, allocations: 314.8 kB / 0.8643 GB, free: 5.477 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.684e-06/0.5673, allocations: 4.031 kB / 0.8643 GB, free: 5.473 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.5673, allocations: 4 kB / 0.8643 GB, free: 5.469 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.016e-05/0.5674, allocations: 0 / 0.8643 GB, free: 5.469 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.5674, allocations: 0 / 0.8643 GB, free: 5.469 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.698e-05/0.5675, allocations: 37.61 kB / 0.8643 GB, free: 5.426 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.5675, allocations: 4 kB / 0.8643 GB, free: 5.422 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.5675, allocations: 4 kB / 0.8643 GB, free: 5.418 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.5675, allocations: 0 / 0.8643 GB, free: 5.418 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.423e-05/0.5675, allocations: 0 / 0.8643 GB, free: 5.418 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.5676, allocations: 4.094 kB / 0.8643 GB, free: 5.414 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.202e-05/0.5676, allocations: 3.984 kB / 0.8643 GB, free: 5.41 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.5676, allocations: 0 / 0.8643 GB, free: 5.41 MB / 0.5419 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.418e-05/0.5677, allocations: 108.9 kB / 0.8644 GB, free: 5.297 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-06/0.5677, allocations: 3.984 kB / 0.8644 GB, free: 5.293 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.732e-05/0.5678, allocations: 40.55 kB / 0.8645 GB, free: 5.246 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.5678, allocations: 0 / 0.8645 GB, free: 5.246 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.5678, allocations: 0 / 0.8645 GB, free: 5.246 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.5678, allocations: 4.031 kB / 0.8645 GB, free: 5.242 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.5679, allocations: 126.2 kB / 0.8646 GB, free: 5.082 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.5679, allocations: 0 / 0.8646 GB, free: 5.082 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.11e-05/0.568, allocations: 4 kB / 0.8646 GB, free: 5.078 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.568, allocations: 0 / 0.8646 GB, free: 5.078 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.568, allocations: 4 kB / 0.8646 GB, free: 5.074 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.568, allocations: 0 / 0.8646 GB, free: 5.074 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.568, allocations: 3.906 kB / 0.8646 GB, free: 5.07 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.344e-05/0.5681, allocations: 69.06 kB / 0.8647 GB, free: 4.984 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000198/0.5683, allocations: 433.5 kB / 0.8651 GB, free: 4.539 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.5684, allocations: 81.05 kB / 0.8652 GB, free: 4.441 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.5684, allocations: 7.984 kB / 0.8652 GB, free: 4.434 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.194e-06/0.5684, allocations: 0 / 0.8652 GB, free: 4.434 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.278e-05/0.5684, allocations: 0 / 0.8652 GB, free: 4.434 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-06/0.5684, allocations: 4.062 kB / 0.8652 GB, free: 4.43 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.745e-05/0.5685, allocations: 79.22 kB / 0.8652 GB, free: 4.352 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007539/0.5692, allocations: 16 kB / 0.8653 GB, free: 4.336 MB / 0.5419 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002401/0.5695, allocations: 135.2 kB / 0.8654 GB, free: 4.191 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 4.761e-05/0.5695, allocations: 7.938 kB / 0.8654 GB, free: 4.184 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.5695, allocations: 0 / 0.8654 GB, free: 4.184 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 5.571e-06/0.5695, allocations: 4 kB / 0.8654 GB, free: 4.18 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.959e-05/0.5696, allocations: 3.906 kB / 0.8654 GB, free: 4.176 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001406/0.5698, allocations: 48.19 kB / 0.8654 GB, free: 4.105 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.5701, allocations: 0.6802 MB / 0.8661 GB, free: 3.398 MB / 0.5419 GB Notification: Performance of SimCode: time 2.7e-07/0.5701, allocations: 0 / 0.8661 GB, free: 3.398 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_BesselJ0_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_BesselJ0.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.BesselJ0.pipe 2>&1)