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.006593/0.006593, allocations: 168.3 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.000927/0.000927, allocations: 94.86 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.09177/0.09177, allocations: 23.48 MB / 341.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005094/0.0005095, allocations: 8.625 kB / 405 MB, free: 41.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 53.11 MB / 458.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4594/0.5725, allocations: 89.52 MB / 0.5348 GB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5728, allocations: 86.09 kB / 0.5349 GB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01266/0.5855, allocations: 3.985 MB / 0.5388 GB, free: 29.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5856, allocations: 3.938 kB / 0.5388 GB, free: 29.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.5856, allocations: 1.312 kB / 0.5388 GB, free: 29.46 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.000381/0.586, allocations: 361.5 kB / 0.5392 GB, free: 29.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.586, allocations: 11.78 kB / 0.5392 GB, free: 29.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.644e-05/0.5861, allocations: 37.19 kB / 0.5392 GB, free: 29.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.604e-05/0.5861, allocations: 3.25 kB / 0.5392 GB, free: 29.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.5863, allocations: 171.6 kB / 0.5394 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.5863, allocations: 0 / 0.5394 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.5863, allocations: 7.844 kB / 0.5394 GB, free: 28.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.5864, allocations: 66.92 kB / 0.5394 GB, free: 28.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.5864, allocations: 0 / 0.5394 GB, free: 28.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.5864, allocations: 3.625 kB / 0.5394 GB, free: 28.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.5865, allocations: 3.938 kB / 0.5394 GB, free: 28.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.072e-05/0.5865, allocations: 7.688 kB / 0.5395 GB, free: 28.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003396/0.5868, allocations: 365.1 kB / 0.5398 GB, free: 28.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.404e-05/0.5869, allocations: 40.31 kB / 0.5398 GB, free: 28.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003577/0.5873, allocations: 204.6 kB / 0.54 GB, free: 28.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.5873, allocations: 30.56 kB / 0.5401 GB, free: 28.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.5873, allocations: 0 / 0.5401 GB, free: 28.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002036/0.5875, allocations: 133.8 kB / 0.5402 GB, free: 28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.5876, allocations: 81.06 kB / 0.5403 GB, free: 27.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.232e-05/0.5876, allocations: 95.28 kB / 0.5404 GB, free: 27.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.926e-06/0.5877, allocations: 29.52 kB / 0.5404 GB, free: 27.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.5877, allocations: 90.45 kB / 0.5405 GB, free: 27.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.025e-05/0.5877, allocations: 15.66 kB / 0.5405 GB, free: 27.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-06/0.5877, allocations: 0 / 0.5405 GB, free: 27.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.781e-05/0.5878, allocations: 314.7 kB / 0.5408 GB, free: 27.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.4e-05/0.5878, allocations: 6.75 kB / 0.5408 GB, free: 27.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.456e-05/0.5878, allocations: 13.53 kB / 0.5408 GB, free: 27.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.053e-05/0.5879, allocations: 7.781 kB / 0.5408 GB, free: 27.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.5879, allocations: 0 / 0.5408 GB, free: 27.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.5e-05/0.5879, allocations: 43.05 kB / 0.5409 GB, free: 27.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.588, allocations: 7.656 kB / 0.5409 GB, free: 27.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.588, allocations: 0 / 0.5409 GB, free: 27.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.588, allocations: 96 / 0.5409 GB, free: 27.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.461e-05/0.588, allocations: 11.84 kB / 0.5409 GB, free: 27.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.588, allocations: 3.984 kB / 0.5409 GB, free: 27.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.9e-05/0.5881, allocations: 7.891 kB / 0.5409 GB, free: 27.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.5881, allocations: 2.812 kB / 0.5409 GB, free: 27.3 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 () * Number of clocked 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 5.468e-05/0.5881, allocations: 113.4 kB / 0.541 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/0.5882, allocations: 7.844 kB / 0.541 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.576e-05/0.5883, allocations: 47.14 kB / 0.5411 GB, free: 27.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.5883, allocations: 4.031 kB / 0.5411 GB, free: 27.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.5883, allocations: 0 / 0.5411 GB, free: 27.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.5883, allocations: 0 / 0.5411 GB, free: 27.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002174/0.5885, allocations: 277.4 kB / 0.5413 GB, free: 26.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.5886, allocations: 7.906 kB / 0.5413 GB, free: 26.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.194e-05/0.5886, allocations: 0 / 0.5413 GB, free: 26.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.5886, allocations: 4.031 kB / 0.5413 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.5886, allocations: 3.844 kB / 0.5413 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.5886, allocations: 2.766 kB / 0.5413 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.604e-06/0.5886, allocations: 3.953 kB / 0.5413 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001133/0.5887, allocations: 229.4 kB / 0.5416 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.5888, allocations: 77.11 kB / 0.5416 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.5888, allocations: 3.969 kB / 0.5416 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.078e-05/0.5889, allocations: 3.953 kB / 0.5416 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.417e-05/0.5889, allocations: 2.203 kB / 0.5416 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.5889, allocations: 7.844 kB / 0.5417 GB, free: 26.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.483e-05/0.5889, allocations: 87.25 kB / 0.5417 GB, free: 26.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5889, allocations: 0 / 0.5417 GB, free: 26.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002994/0.5892, allocations: 34.17 kB / 0.5418 GB, free: 26.4 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 () * Number of clocked 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.0004346/0.5897, allocations: 0.8646 MB / 0.5426 GB, free: 25.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.36e-05/0.5898, allocations: 37.33 kB / 0.5426 GB, free: 25.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5898, allocations: 0 / 0.5426 GB, free: 25.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.2e-05/0.5898, allocations: 35.34 kB / 0.5427 GB, free: 25.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.59, allocations: 4.547 kB / 0.5427 GB, free: 25.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006232/0.5906, allocations: 0.5728 MB / 0.5432 GB, free: 24.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/0.5908, allocations: 0.686 MB / 0.5439 GB, free: 24.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.327e-06/0.5909, allocations: 4 kB / 0.5439 GB, free: 24.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.61e-05/0.5909, allocations: 13.83 kB / 0.5439 GB, free: 24.28 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5909, allocations: 0 / 0.5439 GB, free: 24.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.6033, allocations: 1.234 MB / 0.5451 GB, free: 24.06 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/0.6035, allocations: 159 kB / 0.5453 GB, free: 23.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/2.189, allocations: 0 / 0.5453 GB, free: 23.82 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)