Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.BesselJ0,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_BesselJ0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.BesselJ0,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 1.797/1.797, allocations: 390.4 MB / 397.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009104/0.0009104, allocations: 179.2 kB / 490.8 MB, free: 11.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.149/1.149, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009212/0.0009211, allocations: 101.4 kB / 0.9264 GB, free: 4.555 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2504/0.2514, allocations: 149.2 MB / 1.072 GB, free: 15.49 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5318/0.7832, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.9242, allocations: 148.7 MB / 1.357 GB, free: 42.95 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.9245, allocations: 76.53 kB / 1.357 GB, free: 42.88 MB / 0.8855 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.002875/0.9273, allocations: 1.252 MB / 1.358 GB, free: 41.61 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.9274, allocations: 8 kB / 1.358 GB, free: 41.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.263e-05/0.9274, allocations: 0 / 1.358 GB, free: 41.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.903e-05/0.9275, allocations: 163.1 kB / 1.358 GB, free: 41.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.9275, allocations: 0.5 kB / 1.358 GB, free: 41.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.776e-06/0.9275, allocations: 8.484 kB / 1.358 GB, free: 41.39 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.741e-05/0.9275, allocations: 0.5938 kB / 1.358 GB, free: 41.39 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.893e-05/0.9276, allocations: 34.05 kB / 1.358 GB, free: 41.35 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.9276, allocations: 5.688 kB / 1.358 GB, free: 41.35 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.884e-06/0.9276, allocations: 2.25 kB / 1.358 GB, free: 41.35 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.9276, allocations: 4 kB / 1.358 GB, free: 41.34 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.123e-05/0.9277, allocations: 126.2 kB / 1.358 GB, free: 41.18 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 2.279e-05/0.9277, allocations: 15.55 kB / 1.358 GB, free: 41.16 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.254e-05/0.9277, allocations: 9.172 kB / 1.358 GB, free: 41.15 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004249/0.9282, allocations: 439.3 kB / 1.359 GB, free: 40.63 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.9282, allocations: 35.81 kB / 1.359 GB, free: 40.59 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.9282, allocations: 0 / 1.359 GB, free: 40.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0001075/0.9283, allocations: 38.19 kB / 1.359 GB, free: 40.55 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.343e-05/0.9283, allocations: 56.16 kB / 1.359 GB, free: 40.48 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.465e-05/0.9284, allocations: 85.81 kB / 1.359 GB, free: 40.39 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.93e-06/0.9284, allocations: 25.7 kB / 1.359 GB, free: 40.36 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.137e-06/0.9284, allocations: 84.73 kB / 1.359 GB, free: 40.27 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.767e-05/0.9284, allocations: 0 / 1.359 GB, free: 40.27 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-06/0.9284, allocations: 0.9688 kB / 1.359 GB, free: 40.27 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.311e-05/0.9285, allocations: 311.9 kB / 1.36 GB, free: 39.96 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.33e-06/0.9285, allocations: 0 / 1.36 GB, free: 39.96 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.827e-06/0.9285, allocations: 0 / 1.36 GB, free: 39.96 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.242e-05/0.9285, allocations: 4.562 kB / 1.36 GB, free: 39.96 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.9285, allocations: 0.7188 kB / 1.36 GB, free: 39.96 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.871e-05/0.9286, allocations: 38.61 kB / 1.36 GB, free: 39.91 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.318e-06/0.9286, allocations: 7.984 kB / 1.36 GB, free: 39.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.9286, allocations: 0 / 1.36 GB, free: 39.91 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.524e-06/0.9286, allocations: 1.125 kB / 1.36 GB, free: 39.91 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.093e-05/0.9286, allocations: 4 kB / 1.36 GB, free: 39.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.9286, allocations: 0 / 1.36 GB, free: 39.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.406e-06/0.9287, allocations: 0.5312 kB / 1.36 GB, free: 39.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-06/0.9287, allocations: 0.7812 kB / 1.36 GB, free: 39.9 MB / 0.8855 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 3.547e-05/0.9287, allocations: 105.9 kB / 1.36 GB, free: 39.79 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-06/0.9287, allocations: 3.938 kB / 1.36 GB, free: 39.79 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.65e-05/0.9288, allocations: 41.19 kB / 1.36 GB, free: 39.75 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.9288, allocations: 0.75 kB / 1.36 GB, free: 39.75 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.9288, allocations: 2.188 kB / 1.36 GB, free: 39.75 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.9288, allocations: 0.7812 kB / 1.36 GB, free: 39.75 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.199e-05/0.9289, allocations: 126.2 kB / 1.36 GB, free: 39.59 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.9289, allocations: 0.9062 kB / 1.36 GB, free: 39.59 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.081e-05/0.9289, allocations: 4 kB / 1.36 GB, free: 39.58 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.9289, allocations: 1.219 kB / 1.36 GB, free: 39.58 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-06/0.9289, allocations: 0 / 1.36 GB, free: 39.58 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.9289, allocations: 3.438 kB / 1.36 GB, free: 39.58 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.9289, allocations: 7.5 kB / 1.36 GB, free: 39.58 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.256e-05/0.929, allocations: 68.84 kB / 1.36 GB, free: 39.5 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 7.409e-05/0.929, allocations: 437.4 kB / 1.36 GB, free: 39.05 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.106e-05/0.9291, allocations: 77.11 kB / 1.36 GB, free: 38.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.266e-06/0.9291, allocations: 0 / 1.36 GB, free: 38.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.732e-06/0.9291, allocations: 4.875 kB / 1.36 GB, free: 38.95 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.825e-06/0.9291, allocations: 0.625 kB / 1.36 GB, free: 38.95 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.9291, allocations: 1.438 kB / 1.36 GB, free: 38.95 MB / 0.8855 GB Notification: Performance of sort global known variables: time 9.006e-06/0.9291, allocations: 76.16 kB / 1.361 GB, free: 38.88 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007338/0.9299, allocations: 23.92 kB / 1.361 GB, free: 38.85 MB / 0.8855 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.0002042/0.9301, allocations: 140 kB / 1.361 GB, free: 38.71 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 4.761e-05/0.9301, allocations: 8.938 kB / 1.361 GB, free: 38.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.9301, allocations: 0 / 1.361 GB, free: 38.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.38e-06/0.9301, allocations: 5.062 kB / 1.361 GB, free: 38.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.712e-05/0.9302, allocations: 3.906 kB / 1.361 GB, free: 38.7 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001061/0.9303, allocations: 41.02 kB / 1.361 GB, free: 38.63 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.634e-05/0.9304, allocations: 0.6802 MB / 1.361 GB, free: 37.93 MB / 0.8855 GB Notification: Performance of SimCode: time 2.41e-07/0.9304, allocations: 4.875 kB / 1.361 GB, free: 37.92 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_BesselJ0_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_BesselJ0.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.BesselJ0_res.mat does not exist to compare? outputFormat=mat