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: translateModel(SolarTherm.Models.Sources.SolarModel.Sun,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3332,variableFilter="",fileNamePrefix="SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun") translateModel(SolarTherm.Models.Sources.SolarModel.Sun,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3332,variableFilter="",fileNamePrefix="SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun") [: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.001929/0.001929, allocations: 173.7 kB / 7.458 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.778/1.778, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0009735/0.0009732, allocations: 93.03 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.09515/0.09515, allocations: 22.99 MB / 332 MB, free: 6.461 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.584e-06/7.615e-06, allocations: 4 kB / 391.1 MB, free: 64.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1304, allocations: 53.1 MB / 444.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4227/0.5532, allocations: 88.96 MB / 0.5207 GB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003957/0.5537, allocations: 79.39 kB / 0.5208 GB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.01311/0.5669, allocations: 3.622 MB / 0.5243 GB, free: 10.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.5669, allocations: 0 / 0.5243 GB, free: 10.79 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.000428/0.5674, allocations: 345.8 kB / 0.5246 GB, free: 10.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.161e-05/0.5674, allocations: 8.031 kB / 0.5246 GB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.815e-05/0.5675, allocations: 7.938 kB / 0.5246 GB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001788/0.5677, allocations: 167 kB / 0.5248 GB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.5677, allocations: 0 / 0.5248 GB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.5677, allocations: 4 kB / 0.5248 GB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.622e-05/0.5678, allocations: 8.812 kB / 0.5248 GB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.5679, allocations: 50.61 kB / 0.5249 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.5679, allocations: 0 / 0.5249 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.568, allocations: 4 kB / 0.5249 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.568, allocations: 0 / 0.5249 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004983/0.5685, allocations: 313.2 kB / 0.5252 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.86e-05/0.5686, allocations: 44.16 kB / 0.5252 GB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.515e-05/0.5686, allocations: 13.84 kB / 0.5252 GB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004969/0.5691, allocations: 206.2 kB / 0.5254 GB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.5692, allocations: 46.19 kB / 0.5255 GB, free: 9.406 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.5692, allocations: 0 / 0.5255 GB, free: 9.406 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005634/0.5698, allocations: 69.53 kB / 0.5255 GB, free: 9.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.5698, allocations: 77.11 kB / 0.5256 GB, free: 9.238 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.57, allocations: 100.9 kB / 0.5257 GB, free: 9.137 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.57, allocations: 25.7 kB / 0.5257 GB, free: 9.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.556e-05/0.5701, allocations: 92.05 kB / 0.5258 GB, free: 9.012 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.5701, allocations: 6.719 kB / 0.5258 GB, free: 9.008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-06/0.5701, allocations: 0 / 0.5258 GB, free: 9.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.5703, allocations: 318.8 kB / 0.5261 GB, free: 8.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.438e-05/0.5703, allocations: 0 / 0.5261 GB, free: 8.688 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.262e-05/0.5703, allocations: 21.16 kB / 0.5261 GB, free: 8.664 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.5706, allocations: 31.92 kB / 0.5262 GB, free: 8.633 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.5706, allocations: 8.031 kB / 0.5262 GB, free: 8.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003177/0.5709, allocations: 76.7 kB / 0.5263 GB, free: 8.547 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.571, allocations: 4 kB / 0.5263 GB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.571, allocations: 0 / 0.5263 GB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.571, allocations: 4 kB / 0.5263 GB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.759e-05/0.5711, allocations: 0 / 0.5263 GB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.5711, allocations: 3.938 kB / 0.5263 GB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.35e-05/0.5711, allocations: 4 kB / 0.5263 GB, free: 8.531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.5711, allocations: 3.984 kB / 0.5263 GB, free: 8.527 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 0.000102/0.5712, allocations: 109 kB / 0.5264 GB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/0.5713, allocations: 4 kB / 0.5264 GB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000374/0.5717, allocations: 75.92 kB / 0.5265 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.5717, allocations: 0 / 0.5265 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5717, allocations: 0 / 0.5265 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.5717, allocations: 7.891 kB / 0.5265 GB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.572, allocations: 250.6 kB / 0.5267 GB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.572, allocations: 12 kB / 0.5267 GB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.231e-05/0.5721, allocations: 0 / 0.5267 GB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-06/0.5721, allocations: 0 / 0.5267 GB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.5721, allocations: 4 kB / 0.5267 GB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.5721, allocations: 0 / 0.5267 GB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.5721, allocations: 3.906 kB / 0.5267 GB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004499/0.5726, allocations: 256 kB / 0.527 GB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.5726, allocations: 85.02 kB / 0.527 GB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.5727, allocations: 0 / 0.527 GB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.837e-05/0.5727, allocations: 0 / 0.527 GB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.948e-05/0.5728, allocations: 3.938 kB / 0.527 GB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.5728, allocations: 7.984 kB / 0.5271 GB, free: 7.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.838e-05/0.5728, allocations: 83.53 kB / 0.5271 GB, free: 7.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003031/0.5732, allocations: 31.19 kB / 0.5272 GB, free: 7.535 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.0002636/0.5734, allocations: 135.1 kB / 0.5273 GB, free: 7.395 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001395/0.5736, allocations: 33.7 kB / 0.5273 GB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5736, allocations: 0 / 0.5273 GB, free: 7.355 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.047e-05/0.5736, allocations: 36.39 kB / 0.5274 GB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002056/0.5738, allocations: 0 / 0.5274 GB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002968/0.5741, allocations: 67.58 kB / 0.5274 GB, free: 7.227 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/0.5746, allocations: 0.6921 MB / 0.5281 GB, free: 6.508 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5746, allocations: 4 kB / 0.5281 GB, free: 6.504 MB / 362.7 MB Notification: Performance of Templates: time 0.003384/0.578, allocations: 486.4 kB / 0.5286 GB, free: 6.043 MB / 362.7 MB make -j1 -f SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.makefile (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 & ./SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun -abortSlowSimulation -alarm=480 -lv LOG_STATS > SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe 2>&1)