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.001377/0.001377, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001596/0.001596, allocations: 195 kB / 16.25 MB, free: 6.625 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.42/1.42, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.1845/0.1845, allocations: 24.82 MB / 294.3 MB, free: 12.51 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.002389/0.002389, allocations: 65.28 kB / 357.5 MB, free: 8.305 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1417, allocations: 52.28 MB / 409.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.004064/0.1458, allocations: 1.625 MB / 411.4 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.1473, allocations: 0.652 MB / 412.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.99e-05/0.1474, allocations: 0 / 412.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.743e-05/0.1474, allocations: 0 / 412.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.604e-05/0.1475, allocations: 7.922 kB / 412.1 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1481, allocations: 71.81 kB / 412.1 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.36e-05/0.1482, allocations: 31.78 kB / 412.2 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.719e-05/0.1483, allocations: 8 kB / 412.2 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.61e-05/0.1483, allocations: 4 kB / 412.2 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.533e-05/0.1483, allocations: 15.88 kB / 412.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.739e-06/0.1484, allocations: 0 / 412.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002935/0.1487, allocations: 67.86 kB / 412.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.1487, allocations: 7.984 kB / 412.3 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.565e-05/0.1487, allocations: 15.86 kB / 412.3 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.1489, allocations: 72.09 kB / 412.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.1489, allocations: 0 / 412.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1489, allocations: 0 / 412.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.149, allocations: 0 / 412.4 MB, free: 1.375 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.0004677/0.1494, allocations: 339.4 kB / 412.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1495, allocations: 8.031 kB / 412.7 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.399e-05/0.1496, allocations: 46.64 kB / 412.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.802e-05/0.1496, allocations: 0.9375 kB / 412.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.1497, allocations: 172.2 kB / 412.9 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.1498, allocations: 384 / 412.9 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.1498, allocations: 8.375 kB / 412.9 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.1499, allocations: 63.47 kB / 413 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.1499, allocations: 4 kB / 413 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.15, allocations: 0 / 413 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.15, allocations: 0 / 413 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.222e-05/0.15, allocations: 15.98 kB / 413 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.1505, allocations: 356.9 kB / 413.3 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.797e-05/0.1506, allocations: 45.09 kB / 413.4 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.322e-05/0.1507, allocations: 17.83 kB / 413.4 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006165/0.1513, allocations: 210.2 kB / 413.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.1514, allocations: 34.56 kB / 413.6 MB, free: 15.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.913e-06/0.1514, allocations: 0 / 413.6 MB, free: 15.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002581/0.1516, allocations: 49.62 kB / 413.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/0.1517, allocations: 81.11 kB / 413.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.1518, allocations: 106.1 kB / 413.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.1519, allocations: 25.7 kB / 413.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.1519, allocations: 95.97 kB / 414 MB, free: 15.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.35e-05/0.152, allocations: 7.906 kB / 414 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.152, allocations: 13.72 kB / 414 MB, free: 15.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1522, allocations: 322.8 kB / 414.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.757e-05/0.1522, allocations: 0 / 414.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.242e-05/0.1523, allocations: 17.72 kB / 414.4 MB, free: 15.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.425e-05/0.1523, allocations: 29.62 kB / 414.4 MB, free: 15.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1523, allocations: 0 / 414.4 MB, free: 15.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001034/0.1524, allocations: 53.58 kB / 414.4 MB, free: 14.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.1525, allocations: 4 kB / 414.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/0.1525, allocations: 3.984 kB / 414.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.1525, allocations: 7.938 kB / 414.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.027e-05/0.1526, allocations: 0 / 414.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.1526, allocations: 4.062 kB / 414.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.803e-05/0.1527, allocations: 7.938 kB / 414.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.1527, allocations: 0 / 414.5 MB, free: 14.96 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.0001342/0.1528, allocations: 109.8 kB / 414.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.1529, allocations: 4 kB / 414.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.153, allocations: 48.75 kB / 414.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.153, allocations: 0 / 414.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.153, allocations: 4 kB / 414.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.1531, allocations: 7.969 kB / 414.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003735/0.1534, allocations: 266.6 kB / 414.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.1535, allocations: 0 / 414.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.196e-05/0.1535, allocations: 8 kB / 414.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1535, allocations: 0 / 414.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.1535, allocations: 0 / 414.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1535, allocations: 7.922 kB / 414.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.1535, allocations: 0 / 414.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.1537, allocations: 218.7 kB / 415.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.1538, allocations: 85.09 kB / 415.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.1538, allocations: 0 / 415.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.11e-05/0.1539, allocations: 3.938 kB / 415.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.928e-05/0.1539, allocations: 0 / 415.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.1539, allocations: 4.25 kB / 415.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.519e-05/0.154, allocations: 87.28 kB / 415.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.154, allocations: 4.031 kB / 415.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.1543, allocations: 27.92 kB / 415.3 MB, free: 13.99 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.000585/0.1549, allocations: 0.7742 MB / 416.1 MB, free: 13.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.1551, allocations: 49.72 kB / 416.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1551, allocations: 3.938 kB / 416.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.909e-05/0.1551, allocations: 33.64 kB / 416.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.1554, allocations: 8 kB / 416.2 MB, free: 13.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.157, allocations: 1.311 MB / 417.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.1574, allocations: 0.6883 MB / 418.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.61e-05/0.1574, allocations: 0 / 418.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.231e-05/0.1575, allocations: 11.44 kB / 418.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1575, allocations: 3.938 kB / 418.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0115/0.169, allocations: 1.388 MB / 419.6 MB, free: 9.613 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/0.1692, allocations: 181.7 kB / 419.8 MB, free: 9.363 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.049, allocations: 3.938 kB / 419.8 MB, free: 9.359 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)