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/ModelicaServices 4.0.0+maint.om/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 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 193.6 kB / 16.14 MB, free: 6.707 MB / 14.72 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.1 MB / 222 MB, free: 4.969 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.2685/0.2685, allocations: 24.84 MB / 294.2 MB, free: 12.82 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 60.94 kB / 357.3 MB, free: 8.477 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1448, allocations: 52.29 MB / 409.6 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.002958/0.1478, allocations: 1.625 MB / 411.2 MB, free: 2.504 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1491, allocations: 0.6559 MB / 411.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.1491, allocations: 4 kB / 411.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.385e-05/0.1492, allocations: 3.938 kB / 411.9 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.413e-05/0.1492, allocations: 0 / 411.9 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003872/0.1496, allocations: 67.8 kB / 412 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.897e-05/0.1497, allocations: 27.8 kB / 412 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.628e-05/0.1498, allocations: 7.938 kB / 412 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.545e-05/0.1498, allocations: 8 kB / 412 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.246e-05/0.1499, allocations: 15.91 kB / 412 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.1499, allocations: 0 / 412 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002841/0.1502, allocations: 67.88 kB / 412.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.789e-05/0.1503, allocations: 11.92 kB / 412.1 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.66e-05/0.1503, allocations: 11.94 kB / 412.1 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.1505, allocations: 68.08 kB / 412.2 MB, free: 1.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.1505, allocations: 0 / 412.2 MB, free: 1.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1505, allocations: 0 / 412.2 MB, free: 1.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.1505, allocations: 0 / 412.2 MB, free: 1.551 MB / 302.1 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.0005719/0.1511, allocations: 339.5 kB / 412.5 MB, free: 1.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/0.1512, allocations: 8.031 kB / 412.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.1513, allocations: 46.64 kB / 412.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.1513, allocations: 4.938 kB / 412.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.1516, allocations: 176.2 kB / 412.7 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.1516, allocations: 384 / 412.7 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.1516, allocations: 12.31 kB / 412.7 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.1518, allocations: 55.53 kB / 412.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1518, allocations: 4 kB / 412.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.1518, allocations: 0 / 412.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1518, allocations: 3.984 kB / 412.8 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.031e-05/0.1519, allocations: 15.98 kB / 412.8 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005625/0.1525, allocations: 352.9 kB / 413.2 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.266e-05/0.1526, allocations: 45.09 kB / 413.2 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.036e-05/0.1526, allocations: 21.83 kB / 413.2 MB, free: 312 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005745/0.1532, allocations: 214.2 kB / 413.4 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.1532, allocations: 30.56 kB / 413.5 MB, free: 20 kB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1533, allocations: 0 / 413.5 MB, free: 20 kB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002557/0.1535, allocations: 53.62 kB / 413.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.1536, allocations: 81.36 kB / 413.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.1537, allocations: 105.8 kB / 413.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.1537, allocations: 25.7 kB / 413.7 MB, free: 15.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/0.1538, allocations: 91.92 kB / 413.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.1539, allocations: 11.91 kB / 413.8 MB, free: 15.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.1539, allocations: 9.719 kB / 413.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1541, allocations: 322.8 kB / 414.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.04e-05/0.1541, allocations: 7.938 kB / 414.2 MB, free: 15.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.391e-05/0.1541, allocations: 17.72 kB / 414.2 MB, free: 15.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.316e-05/0.1542, allocations: 21.72 kB / 414.2 MB, free: 15.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1542, allocations: 0 / 414.2 MB, free: 15.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.622e-05/0.1543, allocations: 53.53 kB / 414.3 MB, free: 15.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1543, allocations: 7.938 kB / 414.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.1543, allocations: 4 kB / 414.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.1543, allocations: 4.094 kB / 414.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.787e-05/0.1544, allocations: 0 / 414.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.1544, allocations: 0 / 414.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.255e-05/0.1544, allocations: 7.938 kB / 414.3 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.1545, allocations: 0 / 414.3 MB, free: 15.13 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.1546, allocations: 109.8 kB / 414.4 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/0.1546, allocations: 0 / 414.4 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.1547, allocations: 52.73 kB / 414.4 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.1548, allocations: 4.031 kB / 414.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.1548, allocations: 4 kB / 414.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1548, allocations: 3.938 kB / 414.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.1551, allocations: 270.9 kB / 414.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1551, allocations: 0 / 414.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.995e-05/0.1552, allocations: 8 kB / 414.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1552, allocations: 3.938 kB / 414.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.1552, allocations: 3.984 kB / 414.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1552, allocations: 3.938 kB / 414.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1552, allocations: 4.031 kB / 414.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.1554, allocations: 210.8 kB / 414.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.144e-05/0.1555, allocations: 85.09 kB / 415 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.1555, allocations: 0 / 415 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.33e-05/0.1556, allocations: 7.938 kB / 415 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.1556, allocations: 0 / 415 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-06/0.1556, allocations: 4.031 kB / 415 MB, free: 14.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.121e-05/0.1557, allocations: 83.28 kB / 415.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1557, allocations: 3.938 kB / 415.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.156, allocations: 27.92 kB / 415.2 MB, free: 14.15 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007714/0.1568, allocations: 0.7782 MB / 415.9 MB, free: 13.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001375/0.1569, allocations: 45.56 kB / 416 MB, free: 13.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1569, allocations: 0 / 416 MB, free: 13.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.183e-05/0.157, allocations: 33.7 kB / 416 MB, free: 13.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.1573, allocations: 4 kB / 416 MB, free: 13.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.1586, allocations: 1.324 MB / 417.3 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1589, allocations: 0.6887 MB / 418 MB, free: 11.13 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.115e-05/0.1589, allocations: 0 / 418 MB, free: 11.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.159, allocations: 15.38 kB / 418 MB, free: 11.11 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.159, allocations: 0 / 418 MB, free: 11.11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01317/0.1721, allocations: 1.332 MB / 419.4 MB, free: 9.816 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/0.1724, allocations: 185.8 kB / 419.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.234, allocations: 0 / 419.6 MB, free: 9.559 MB / 318.1 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/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)