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.005279/0.005279, allocations: 98.67 kB / 15.73 MB, free: 6.039 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.001232/0.001232, allocations: 202.7 kB / 16.68 MB, free: 5.965 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.4/1.4, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.2206/0.2206, allocations: 24.83 MB / 294.7 MB, free: 12.29 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.002029/0.002029, allocations: 71.89 kB / 411.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2761, allocations: 52.28 MB / 464.1 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.003203/0.2793, allocations: 1.565 MB / 465.6 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2804, allocations: 0.6569 MB / 466.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.2805, allocations: 3.938 kB / 466.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.1e-05/0.2805, allocations: 3.938 kB / 466.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.475e-05/0.2806, allocations: 3.938 kB / 466.3 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.281, allocations: 75.72 kB / 466.4 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.606e-05/0.2811, allocations: 27.86 kB / 466.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.191e-05/0.2811, allocations: 0 / 466.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.507e-05/0.2811, allocations: 7.938 kB / 466.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.184e-05/0.2812, allocations: 19.97 kB / 466.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.876e-06/0.2812, allocations: 0 / 466.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.2814, allocations: 67.88 kB / 466.5 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.2815, allocations: 7.922 kB / 466.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.905e-05/0.2815, allocations: 11.94 kB / 466.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.2817, allocations: 70.19 kB / 466.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2817, allocations: 3.938 kB / 466.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2817, allocations: 0 / 466.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.2817, allocations: 0 / 466.6 MB, free: 4.961 MB / 334.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.0003652/0.2821, allocations: 351.4 kB / 466.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.2821, allocations: 12.03 kB / 467 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.976e-05/0.2822, allocations: 42.66 kB / 467 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.2822, allocations: 8.922 kB / 467 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.2823, allocations: 164.3 kB / 467.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.2824, allocations: 384 / 467.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.2824, allocations: 4.375 kB / 467.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.2825, allocations: 63.53 kB / 467.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2825, allocations: 0 / 467.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.2825, allocations: 7.984 kB / 467.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.2826, allocations: 0 / 467.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.345e-05/0.2826, allocations: 15.94 kB / 467.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003956/0.283, allocations: 348.9 kB / 467.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.257e-05/0.2831, allocations: 53.08 kB / 467.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.66e-05/0.2831, allocations: 13.84 kB / 467.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004883/0.2836, allocations: 210.2 kB / 467.9 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.2837, allocations: 38.56 kB / 467.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.323e-06/0.2837, allocations: 0 / 467.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002031/0.2839, allocations: 57.53 kB / 468 MB, free: 3.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.2839, allocations: 81.05 kB / 468 MB, free: 3.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.098e-05/0.284, allocations: 105.8 kB / 468.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.2841, allocations: 25.7 kB / 468.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.2841, allocations: 91.98 kB / 468.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.2841, allocations: 11.84 kB / 468.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.2842, allocations: 13.72 kB / 468.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2843, allocations: 323 kB / 468.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.171e-05/0.2843, allocations: 0 / 468.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.646e-05/0.2843, allocations: 17.72 kB / 468.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.66e-05/0.2844, allocations: 21.72 kB / 468.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2844, allocations: 0 / 468.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.666e-05/0.2845, allocations: 45.62 kB / 468.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.2845, allocations: 8.094 kB / 468.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2845, allocations: 4 kB / 468.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2845, allocations: 0 / 468.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.161e-05/0.2846, allocations: 0 / 468.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.2846, allocations: 4 kB / 468.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.996e-05/0.2846, allocations: 7.938 kB / 468.7 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.2846, allocations: 0 / 468.7 MB, free: 2.547 MB / 334.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 7.698e-05/0.2847, allocations: 109.8 kB / 468.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/0.2847, allocations: 7.844 kB / 468.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.327e-05/0.2848, allocations: 56.73 kB / 468.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2848, allocations: 4 kB / 468.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.2849, allocations: 0 / 468.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.2849, allocations: 4.188 kB / 468.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.2851, allocations: 270.6 kB / 469.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.2851, allocations: 7.938 kB / 469.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.115e-05/0.2852, allocations: 4 kB / 469.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2852, allocations: 0 / 469.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.2852, allocations: 8.047 kB / 469.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2852, allocations: 3.938 kB / 469.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2852, allocations: 4 kB / 469.2 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.2853, allocations: 206.8 kB / 469.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.2854, allocations: 85 kB / 469.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.2854, allocations: 3.938 kB / 469.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.027e-05/0.2855, allocations: 3.984 kB / 469.5 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.2855, allocations: 12.02 kB / 469.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.2855, allocations: 4 kB / 469.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.235e-05/0.2856, allocations: 83.22 kB / 469.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2856, allocations: 0 / 469.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002755/0.2858, allocations: 27.92 kB / 469.6 MB, free: 1.555 MB / 334.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.0004924/0.2863, allocations: 0.7743 MB / 470.4 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.2865, allocations: 49.56 kB / 470.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2865, allocations: 0 / 470.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.691e-05/0.2865, allocations: 37.7 kB / 470.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.2868, allocations: 0 / 470.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.2879, allocations: 1.323 MB / 471.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.2882, allocations: 0.6768 MB / 472.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.678e-06/0.2882, allocations: 4 kB / 472.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.72e-05/0.2882, allocations: 11.44 kB / 472.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2882, allocations: 0 / 472.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.3052, allocations: 1.485 MB / 473.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.255, allocations: 11.86 kB / 474 MB, free: 13.04 MB / 350.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)