Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo", uses=false) Using package SolarTherm with version 0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(SolarTherm.Models.Sources.SolarModel.Sun,fileNamePrefix="SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SolarTherm.Models.Sources.SolarModel.Sun,fileNamePrefix="SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun",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/Complex 3.2.3+maint.om/package.mo): time 0.003952/0.003952, allocations: 179.8 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.2 MB / 213.1 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009566/0.0009567, allocations: 102.8 kB / 261.1 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.1042/0.1042, allocations: 22.99 MB / 332 MB, free: 6.469 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2777/0.3819, allocations: 59.22 MB / 391.2 MB, free: 64.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.5082, allocations: 53.11 MB / 444.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5197/1.028, allocations: 88.97 MB / 0.5208 GB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/1.028, allocations: 76.02 kB / 0.5209 GB, free: 13.47 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.01237/1.041, allocations: 3.958 MB / 0.5247 GB, free: 10.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/1.041, allocations: 8 kB / 0.5247 GB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.28e-05/1.041, allocations: 4 kB / 0.5248 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/1.041, allocations: 166.9 kB / 0.5249 GB, free: 9.926 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/1.041, allocations: 0 / 0.5249 GB, free: 9.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/1.041, allocations: 7.938 kB / 0.5249 GB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.075e-05/1.041, allocations: 4 kB / 0.5249 GB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.819e-05/1.041, allocations: 54.47 kB / 0.525 GB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/1.041, allocations: 0 / 0.525 GB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/1.041, allocations: 0 / 0.525 GB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/1.041, allocations: 7.984 kB / 0.525 GB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003599/1.042, allocations: 309.4 kB / 0.5253 GB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.035e-05/1.042, allocations: 48.47 kB / 0.5253 GB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.683e-05/1.042, allocations: 13.84 kB / 0.5253 GB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004262/1.042, allocations: 209 kB / 0.5255 GB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/1.042, allocations: 34.56 kB / 0.5256 GB, free: 9.145 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/1.042, allocations: 0 / 0.5256 GB, free: 9.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004566/1.043, allocations: 80.83 kB / 0.5256 GB, free: 9.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/1.043, allocations: 77.11 kB / 0.5257 GB, free: 8.969 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.045e-05/1.043, allocations: 92.94 kB / 0.5258 GB, free: 8.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/1.043, allocations: 29.7 kB / 0.5258 GB, free: 8.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.419e-05/1.043, allocations: 91.3 kB / 0.5259 GB, free: 8.746 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.538e-06/1.043, allocations: 11.89 kB / 0.5259 GB, free: 8.734 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/1.043, allocations: 0 / 0.5259 GB, free: 8.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/1.043, allocations: 318.2 kB / 0.5262 GB, free: 8.418 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.057e-05/1.043, allocations: 0 / 0.5262 GB, free: 8.418 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.754e-05/1.043, allocations: 13.72 kB / 0.5263 GB, free: 8.398 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/1.043, allocations: 35.55 kB / 0.5263 GB, free: 8.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/1.043, allocations: 0 / 0.5263 GB, free: 8.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002895/1.044, allocations: 85.48 kB / 0.5264 GB, free: 8.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/1.044, allocations: 4 kB / 0.5264 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/1.044, allocations: 0 / 0.5264 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/1.044, allocations: 0 / 0.5264 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.956e-05/1.044, allocations: 4 kB / 0.5264 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/1.044, allocations: 0 / 0.5264 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.741e-05/1.044, allocations: 0.875 kB / 0.5264 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/1.044, allocations: 4 kB / 0.5264 GB, free: 8.266 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 6.944e-05/1.044, allocations: 112.9 kB / 0.5265 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/1.044, allocations: 0 / 0.5265 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003316/1.044, allocations: 75.81 kB / 0.5266 GB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/1.044, allocations: 7.938 kB / 0.5266 GB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.044, allocations: 3.984 kB / 0.5266 GB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/1.044, allocations: 3.906 kB / 0.5266 GB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/1.044, allocations: 241.8 kB / 0.5268 GB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/1.044, allocations: 256 / 0.5268 GB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.457e-05/1.044, allocations: 16 kB / 0.5268 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/1.044, allocations: 0 / 0.5268 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/1.044, allocations: 0 / 0.5268 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.044, allocations: 4 kB / 0.5268 GB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.044, allocations: 3.906 kB / 0.5268 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003489/1.045, allocations: 247.7 kB / 0.5271 GB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005596/1.045, allocations: 0.6495 MB / 0.5277 GB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/1.045, allocations: 77.11 kB / 0.5278 GB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/1.045, allocations: 4.031 kB / 0.5278 GB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.391e-05/1.046, allocations: 0 / 0.5278 GB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/1.046, allocations: 7.094 kB / 0.5278 GB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/1.046, allocations: 4 kB / 0.5278 GB, free: 6.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.147e-05/1.046, allocations: 75.28 kB / 0.5279 GB, free: 6.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008995/1.047, allocations: 43.33 kB / 0.5279 GB, free: 6.617 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001766/1.047, allocations: 115.2 kB / 0.528 GB, free: 6.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.875e-05/1.047, allocations: 37.69 kB / 0.528 GB, free: 6.453 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/1.047, allocations: 7.938 kB / 0.5281 GB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.243e-05/1.047, allocations: 40.83 kB / 0.5281 GB, free: 6.402 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001728/1.047, allocations: 0 / 0.5281 GB, free: 6.402 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002206/1.047, allocations: 72.14 kB / 0.5282 GB, free: 6.309 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/1.048, allocations: 0.6958 MB / 0.5288 GB, free: 5.586 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/1.048, allocations: 3.938 kB / 0.5288 GB, free: 5.582 MB / 362.7 MB (rm -f SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe ; mkfifo SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe ; head -c 1048576 < SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe >> ../files/SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun_fmu --startTime=0 --stopTime=100000 --timeout=50 --tolerance=1e-06 SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun.fmu > SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe 2>&1)