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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001448/0.001448, allocations: 172.4 kB / 7.647 MB, free: 1.422 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.659/1.659, allocations: 205.3 MB / 213.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00089/0.0008902, allocations: 86.7 kB / 261.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.09514/0.09514, allocations: 22.99 MB / 332.3 MB, free: 4.805 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.566e-05/1.568e-05, allocations: 1.594 kB / 391.7 MB, free: 44.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1232, allocations: 53.12 MB / 444.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4544/0.5777, allocations: 88.76 MB / 0.5211 GB, free: 18.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.578, allocations: 84.3 kB / 0.5212 GB, free: 18.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0131/0.5911, allocations: 3.954 MB / 0.5251 GB, free: 33.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5911, allocations: 1.625 kB / 0.5251 GB, free: 33.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.5911, allocations: 0 / 0.5251 GB, free: 33.96 MB / 378.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.000323/0.5915, allocations: 352.8 kB / 0.5254 GB, free: 33.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.5915, allocations: 12.06 kB / 0.5254 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.5916, allocations: 1.312 kB / 0.5254 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.5917, allocations: 169.7 kB / 0.5256 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.5917, allocations: 7.938 kB / 0.5256 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.5917, allocations: 2.656 kB / 0.5256 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.133e-05/0.5918, allocations: 2.656 kB / 0.5256 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.637e-05/0.5919, allocations: 48.66 kB / 0.5256 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.5919, allocations: 0 / 0.5256 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.5919, allocations: 5.312 kB / 0.5256 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.5919, allocations: 0 / 0.5256 GB, free: 33.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000356/0.5923, allocations: 319.5 kB / 0.526 GB, free: 33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.349e-05/0.5923, allocations: 39.19 kB / 0.526 GB, free: 32.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.562e-05/0.5924, allocations: 18.5 kB / 0.526 GB, free: 32.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/0.5927, allocations: 203.5 kB / 0.5262 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.454e-05/0.5928, allocations: 34.5 kB / 0.5262 GB, free: 32.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.5928, allocations: 5.594 kB / 0.5262 GB, free: 32.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004039/0.5932, allocations: 59.8 kB / 0.5263 GB, free: 32.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.5932, allocations: 79.36 kB / 0.5264 GB, free: 32.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.44e-05/0.5933, allocations: 96.25 kB / 0.5265 GB, free: 32.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.5933, allocations: 25.7 kB / 0.5265 GB, free: 32.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.5934, allocations: 92.28 kB / 0.5266 GB, free: 32.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.228e-06/0.5934, allocations: 9.5 kB / 0.5266 GB, free: 32.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-06/0.5934, allocations: 3.938 kB / 0.5266 GB, free: 32.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.5935, allocations: 320.2 kB / 0.5269 GB, free: 32.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.126e-05/0.5935, allocations: 1.406 kB / 0.5269 GB, free: 32.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.447e-05/0.5936, allocations: 15.88 kB / 0.5269 GB, free: 32.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.5938, allocations: 29.22 kB / 0.5269 GB, free: 32.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5938, allocations: 0 / 0.5269 GB, free: 32.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002716/0.5941, allocations: 63 kB / 0.527 GB, free: 31.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.5941, allocations: 10.41 kB / 0.527 GB, free: 31.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.5942, allocations: 0 / 0.527 GB, free: 31.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.5942, allocations: 1.719 kB / 0.527 GB, free: 31.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.745e-05/0.5942, allocations: 8.047 kB / 0.527 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.5943, allocations: 1.344 kB / 0.527 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.666e-05/0.5943, allocations: 0 / 0.527 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.5943, allocations: 1.562 kB / 0.527 GB, free: 31.98 MB / 378.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 7.786e-05/0.5944, allocations: 110.2 kB / 0.5271 GB, free: 31.87 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002845/0.5947, allocations: 77 kB / 0.5272 GB, free: 31.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.5947, allocations: 7.922 kB / 0.5272 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002932/0.595, allocations: 67.86 kB / 0.5273 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.595, allocations: 1.594 kB / 0.5273 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.595, allocations: 0 / 0.5273 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.5951, allocations: 1.719 kB / 0.5273 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.5953, allocations: 246.9 kB / 0.5275 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.5953, allocations: 8.172 kB / 0.5275 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.1e-05/0.5953, allocations: 5.688 kB / 0.5275 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.5953, allocations: 0 / 0.5275 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-06/0.5953, allocations: 1.688 kB / 0.5275 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.5953, allocations: 0 / 0.5275 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5953, allocations: 1.812 kB / 0.5275 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.5957, allocations: 247.9 kB / 0.5278 GB, free: 31.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.334e-05/0.5957, allocations: 89.14 kB / 0.5278 GB, free: 31.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.5957, allocations: 1.875 kB / 0.5278 GB, free: 31.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.331e-05/0.5958, allocations: 0 / 0.5278 GB, free: 31.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/0.5958, allocations: 13.48 kB / 0.5279 GB, free: 31.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.5958, allocations: 1.641 kB / 0.5279 GB, free: 31.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.291e-05/0.5959, allocations: 81.17 kB / 0.5279 GB, free: 31.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.282e-06/0.5959, allocations: 0 / 0.5279 GB, free: 31.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000288/0.5962, allocations: 23.75 kB / 0.528 GB, free: 31.1 MB / 378.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.0007524/0.597, allocations: 0.8838 MB / 0.5288 GB, free: 30.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.665e-05/0.5971, allocations: 42.14 kB / 0.5289 GB, free: 30.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.5971, allocations: 0 / 0.5289 GB, free: 30.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.604e-05/0.5971, allocations: 37.47 kB / 0.5289 GB, free: 30.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.5973, allocations: 5.453 kB / 0.5289 GB, free: 30.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003675/0.5977, allocations: 120.1 kB / 0.529 GB, free: 30.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.598, allocations: 0.6795 MB / 0.5297 GB, free: 29.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.034e-05/0.598, allocations: 3.906 kB / 0.5297 GB, free: 29.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.298e-05/0.598, allocations: 9.938 kB / 0.5297 GB, free: 29.36 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.598, allocations: 0 / 0.5297 GB, free: 29.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.6173, allocations: 0.938 MB / 0.5306 GB, free: 29.28 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/0.6175, allocations: 118.9 kB / 0.5307 GB, free: 29.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.366, allocations: 2.516 kB / 0.5307 GB, free: 29.09 MB / 378.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)