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.000991/0.0009909, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001198/0.001198, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.728/1.728, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.1183/0.1183, allocations: 24.29 MB / 294.7 MB, free: 12.98 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.0005676/0.0005678, allocations: 19.11 kB / 358.6 MB, free: 9.172 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.127, allocations: 53.28 MB / 411.8 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.002367/0.1294, allocations: 1.276 MB / 413.1 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.1308, allocations: 0.6095 MB / 413.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.157e-05/0.1308, allocations: 0 / 413.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.656e-05/0.1309, allocations: 3.984 kB / 413.7 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.956e-05/0.131, allocations: 3.938 kB / 413.7 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.1314, allocations: 63.86 kB / 413.8 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.107e-05/0.1315, allocations: 19.88 kB / 413.8 MB, free: 1.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.729e-05/0.1316, allocations: 7.922 kB / 413.8 MB, free: 1.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.935e-05/0.1316, allocations: 15.92 kB / 413.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.104e-05/0.1317, allocations: 7.938 kB / 413.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.1317, allocations: 0 / 413.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000275/0.132, allocations: 67.92 kB / 413.9 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.653e-05/0.132, allocations: 11.88 kB / 413.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.007e-05/0.132, allocations: 29.7 kB / 413.9 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.1322, allocations: 52.16 kB / 414 MB, free: 1.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1322, allocations: 4 kB / 414 MB, free: 1.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1322, allocations: 0 / 414 MB, free: 1.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.1322, allocations: 0 / 414 MB, free: 1.664 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.0006103/0.1328, allocations: 329.8 kB / 414.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1329, allocations: 12.03 kB / 414.3 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.165e-05/0.133, allocations: 38.47 kB / 414.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.138e-05/0.133, allocations: 4 kB / 414.4 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.1332, allocations: 170.9 kB / 414.5 MB, free: 1.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.1332, allocations: 3.938 kB / 414.5 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.1332, allocations: 8 kB / 414.6 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001514/0.1334, allocations: 63.39 kB / 414.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1334, allocations: 0 / 414.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.1334, allocations: 0 / 414.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1334, allocations: 0 / 414.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.089e-05/0.1335, allocations: 12 kB / 414.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005299/0.134, allocations: 353 kB / 415 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.557e-05/0.1341, allocations: 49.08 kB / 415 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.582e-05/0.1342, allocations: 13.84 kB / 415 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004862/0.1346, allocations: 206.2 kB / 415.2 MB, free: 212 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.1347, allocations: 38.56 kB / 415.3 MB, free: 164 kB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.493e-06/0.1347, allocations: 0 / 415.3 MB, free: 164 kB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002171/0.1349, allocations: 57.48 kB / 415.3 MB, free: 100 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.135, allocations: 77.11 kB / 415.4 MB, free: 4 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.1351, allocations: 105.8 kB / 415.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.1352, allocations: 25.7 kB / 415.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.1352, allocations: 95.97 kB / 415.6 MB, free: 15.76 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.015e-05/0.1352, allocations: 3.906 kB / 415.6 MB, free: 15.76 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.1352, allocations: 8.25 kB / 415.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1354, allocations: 310.8 kB / 415.9 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.694e-05/0.1354, allocations: 11.92 kB / 416 MB, free: 15.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.343e-05/0.1354, allocations: 17.7 kB / 416 MB, free: 15.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.357e-05/0.1355, allocations: 8 kB / 416 MB, free: 15.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1355, allocations: 0 / 416 MB, free: 15.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.085e-05/0.1356, allocations: 45.7 kB / 416 MB, free: 15.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1356, allocations: 8.031 kB / 416 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.1356, allocations: 3.984 kB / 416 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1356, allocations: 0 / 416 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.116e-05/0.1357, allocations: 4 kB / 416 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.1357, allocations: 3.953 kB / 416 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.934e-05/0.1357, allocations: 7.844 kB / 416 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.1357, allocations: 4 kB / 416.1 MB, free: 15.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.95e-05/0.1358, allocations: 105.8 kB / 416.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.421e-05/0.1359, allocations: 4 kB / 416.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.136, allocations: 48.81 kB / 416.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.136, allocations: 0 / 416.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.136, allocations: 256 / 416.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.136, allocations: 7.891 kB / 416.2 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.1364, allocations: 274.6 kB / 416.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.1364, allocations: 4 kB / 416.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.189e-05/0.1364, allocations: 0 / 416.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/0.1364, allocations: 0 / 416.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.1364, allocations: 8.062 kB / 416.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.1364, allocations: 3.953 kB / 416.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1364, allocations: 0 / 416.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.1366, allocations: 214.8 kB / 416.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.758e-05/0.1367, allocations: 81.02 kB / 416.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.1367, allocations: 0 / 416.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.332e-05/0.1368, allocations: 8 kB / 416.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.271e-05/0.1368, allocations: 15.91 kB / 416.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-06/0.1368, allocations: 0 / 416.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.23e-05/0.1369, allocations: 79.28 kB / 416.9 MB, free: 14.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1369, allocations: 0 / 416.9 MB, free: 14.37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002993/0.1372, allocations: 23.94 kB / 416.9 MB, free: 14.35 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 (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.000727/0.1379, allocations: 0.7859 MB / 417.7 MB, free: 13.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001217/0.138, allocations: 33.7 kB / 417.7 MB, free: 13.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1381, allocations: 0 / 417.7 MB, free: 13.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.773e-05/0.1381, allocations: 41.62 kB / 417.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.1384, allocations: 7.953 kB / 417.8 MB, free: 13.44 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008983/0.1393, allocations: 426.4 kB / 418.2 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.1397, allocations: 0.6848 MB / 418.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.466e-05/0.1398, allocations: 4 kB / 418.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.366e-05/0.1398, allocations: 7.438 kB / 418.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1398, allocations: 0 / 418.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0127/0.1525, allocations: 1.27 MB / 420.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/0.1528, allocations: 171.9 kB / 420.3 MB, free: 10.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.037, allocations: 3.938 kB / 420.3 MB, free: 10.8 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/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)