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.001971/0.001971, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002013/0.002014, allocations: 194.6 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.084/3.084, allocations: 205.1 MB / 222.4 MB, free: 4.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 2.676/2.676, allocations: 24.82 MB / 294.6 MB, free: 12.38 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.002841/0.002841, allocations: 68.72 kB / 358 MB, free: 7.973 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2242, allocations: 52.28 MB / 410.3 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.006409/0.2307, allocations: 1.564 MB / 411.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.233, allocations: 0.6558 MB / 412.5 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.989e-05/0.2331, allocations: 0 / 412.5 MB, free: 1.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.879e-05/0.2332, allocations: 3.984 kB / 412.5 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.2374, allocations: 7.938 kB / 412.5 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008911/0.2384, allocations: 75.66 kB / 412.6 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.2385, allocations: 23.81 kB / 412.6 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.459e-05/0.2386, allocations: 4 kB / 412.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.436e-05/0.2387, allocations: 15.98 kB / 412.6 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.69e-05/0.2388, allocations: 7.922 kB / 412.6 MB, free: 1.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.2388, allocations: 4 kB / 412.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004743/0.2393, allocations: 71.86 kB / 412.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.212e-05/0.2393, allocations: 0 / 412.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.167e-05/0.2394, allocations: 15.88 kB / 412.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.2397, allocations: 68.08 kB / 412.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.2397, allocations: 3.938 kB / 412.8 MB, free: 1.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.2398, allocations: 0 / 412.8 MB, free: 1.102 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.2398, allocations: 4 kB / 412.8 MB, free: 1.098 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.0006168/0.2404, allocations: 351.4 kB / 413.1 MB, free: 0.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.205e-05/0.2405, allocations: 8.031 kB / 413.2 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.2406, allocations: 34.66 kB / 413.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.2407, allocations: 4.938 kB / 413.2 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.2409, allocations: 172.2 kB / 413.4 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.241, allocations: 8.375 kB / 413.4 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.241, allocations: 384 / 413.4 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.2413, allocations: 67.47 kB / 413.4 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.2413, allocations: 4 kB / 413.4 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.2414, allocations: 0 / 413.4 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.2414, allocations: 4 kB / 413.4 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.357e-05/0.2415, allocations: 8 kB / 413.4 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007855/0.2423, allocations: 356.9 kB / 413.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.2424, allocations: 53.14 kB / 413.8 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.411e-05/0.2425, allocations: 17.78 kB / 413.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008715/0.2434, allocations: 210.2 kB / 414.1 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.541e-05/0.2434, allocations: 38.56 kB / 414.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 2.154e-06/0.2435, allocations: 0 / 414.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002932/0.2438, allocations: 53.62 kB / 414.2 MB, free: 15.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.829e-05/0.2438, allocations: 77.11 kB / 414.2 MB, free: 15.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.244, allocations: 101.8 kB / 414.3 MB, free: 15.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.244, allocations: 25.7 kB / 414.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.837e-05/0.2441, allocations: 95.98 kB / 414.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.2442, allocations: 8.156 kB / 414.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-05/0.2442, allocations: 17.7 kB / 414.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.2444, allocations: 318.8 kB / 414.8 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.225e-05/0.2445, allocations: 4 kB / 414.8 MB, free: 14.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.555e-05/0.2445, allocations: 17.66 kB / 414.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.164e-05/0.2446, allocations: 25.66 kB / 414.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2446, allocations: 4.031 kB / 414.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001494/0.2448, allocations: 53.53 kB / 414.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.2448, allocations: 6.812 kB / 414.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.2449, allocations: 0 / 414.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.2449, allocations: 0 / 414.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.863e-05/0.245, allocations: 4 kB / 414.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.245, allocations: 0 / 414.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.544e-05/0.245, allocations: 3.938 kB / 414.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.2451, allocations: 4 kB / 414.9 MB, free: 14.68 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.0001259/0.2452, allocations: 113.9 kB / 415 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.551e-05/0.2453, allocations: 7.938 kB / 415 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.2456, allocations: 48.75 kB / 415.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.2456, allocations: 3.984 kB / 415.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.2456, allocations: 0 / 415.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.2456, allocations: 3.938 kB / 415.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004779/0.2461, allocations: 266.7 kB / 415.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.2461, allocations: 12.05 kB / 415.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.906e-05/0.2462, allocations: 0 / 415.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2462, allocations: 0 / 415.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.2462, allocations: 4 kB / 415.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.2462, allocations: 3.938 kB / 415.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2462, allocations: 0 / 415.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.2465, allocations: 222.7 kB / 415.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-05/0.2466, allocations: 81.14 kB / 415.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.2466, allocations: 4 kB / 415.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.2468, allocations: 4.188 kB / 415.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.218e-05/0.2468, allocations: 0 / 415.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.2469, allocations: 4 kB / 415.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.598e-05/0.2469, allocations: 83.27 kB / 415.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.247, allocations: 0 / 415.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005727/0.2476, allocations: 27.94 kB / 415.8 MB, free: 13.7 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.0009448/0.2485, allocations: 0.782 MB / 416.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001862/0.2487, allocations: 45.58 kB / 416.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2488, allocations: 4 kB / 416.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.554e-05/0.2488, allocations: 33.92 kB / 416.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005597/0.2494, allocations: 4.062 kB / 416.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/0.2514, allocations: 1.311 MB / 418 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.2519, allocations: 0.6884 MB / 418.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.537e-05/0.252, allocations: 0 / 418.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.888e-05/0.252, allocations: 11.44 kB / 418.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of SimCode: time 1.041e-06/0.252, allocations: 0 / 418.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/0.3847, allocations: 1.451 MB / 420.1 MB, free: 9.219 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/17.49, allocations: 11.92 kB / 420.1 MB, free: 9.207 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 & python3 -m fmpy simulate --output-file SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun_res.csv --start-time 0 --stop-time 100000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 60.024 SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun.fmu > SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe 2>&1)