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.004796/0.004796, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001253/0.001253, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.272/1.272, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 2.984/2.984, allocations: 24.83 MB / 294.7 MB, free: 12.28 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.003003/0.003003, allocations: 78.86 kB / 411.8 MB, free: 2.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3177, allocations: 52.28 MB / 464.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.003718/0.3215, allocations: 1.569 MB / 465.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.3231, allocations: 0.6608 MB / 466.3 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.452e-05/0.3231, allocations: 3.938 kB / 466.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.822e-05/0.3232, allocations: 7.938 kB / 466.3 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.933e-05/0.3233, allocations: 0 / 466.3 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004443/0.3237, allocations: 79.66 kB / 466.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.495e-05/0.3238, allocations: 27.86 kB / 466.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.547e-05/0.3239, allocations: 8 kB / 466.4 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.567e-05/0.3239, allocations: 7.938 kB / 466.4 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.045e-05/0.3239, allocations: 7.984 kB / 466.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.297e-06/0.324, allocations: 0 / 466.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003049/0.3243, allocations: 71.86 kB / 466.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.265e-05/0.3243, allocations: 3.938 kB / 466.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.908e-05/0.3243, allocations: 11.94 kB / 466.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.3245, allocations: 70.59 kB / 466.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3246, allocations: 4 kB / 466.6 MB, free: 4.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3246, allocations: 0 / 466.6 MB, free: 4.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.3246, allocations: 4 kB / 466.6 MB, free: 4.949 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.0004471/0.325, allocations: 344.3 kB / 467 MB, free: 4.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3251, allocations: 8.031 kB / 467 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.691e-05/0.3252, allocations: 38.73 kB / 467 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.159e-05/0.3252, allocations: 8.875 kB / 467 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001725/0.3254, allocations: 164.4 kB / 467.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.3254, allocations: 4.375 kB / 467.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.3254, allocations: 384 / 467.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.3256, allocations: 71.47 kB / 467.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.587e-06/0.3256, allocations: 0 / 467.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.3257, allocations: 4 kB / 467.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.3257, allocations: 0 / 467.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.423e-05/0.3257, allocations: 19.92 kB / 467.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005277/0.3263, allocations: 352.9 kB / 467.6 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.909e-05/0.3264, allocations: 45.16 kB / 467.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.994e-05/0.3265, allocations: 17.78 kB / 467.7 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006548/0.3271, allocations: 210.2 kB / 467.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.3272, allocations: 34.56 kB / 467.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.794e-06/0.3272, allocations: 0 / 467.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.00024/0.3274, allocations: 49.64 kB / 468 MB, free: 3.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.3275, allocations: 85.03 kB / 468 MB, free: 3.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.3276, allocations: 97.86 kB / 468.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.3277, allocations: 25.7 kB / 468.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.3277, allocations: 100.1 kB / 468.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.3278, allocations: 12.09 kB / 468.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.3278, allocations: 17.72 kB / 468.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.328, allocations: 318.8 kB / 468.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.961e-05/0.3281, allocations: 4 kB / 468.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.757e-05/0.3281, allocations: 21.89 kB / 468.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.747e-05/0.3282, allocations: 21.72 kB / 468.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3282, allocations: 8.031 kB / 468.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001105/0.3283, allocations: 45.64 kB / 468.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3283, allocations: 4 kB / 468.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.3284, allocations: 3.984 kB / 468.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.3284, allocations: 0 / 468.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.3e-05/0.3284, allocations: 4 kB / 468.7 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.3284, allocations: 3.984 kB / 468.7 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.717e-05/0.3285, allocations: 3.938 kB / 468.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.3285, allocations: 4 kB / 468.7 MB, free: 2.535 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 9.624e-05/0.3286, allocations: 109.9 kB / 468.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.3287, allocations: 11.95 kB / 468.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.3288, allocations: 44.75 kB / 468.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3288, allocations: 0 / 468.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3288, allocations: 0 / 468.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.3289, allocations: 7.938 kB / 468.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000446/0.3293, allocations: 266.6 kB / 469.2 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.3293, allocations: 4 kB / 469.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.379e-05/0.3294, allocations: 4.062 kB / 469.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3294, allocations: 0 / 469.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.3294, allocations: 4 kB / 469.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.605e-06/0.3294, allocations: 7.875 kB / 469.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3294, allocations: 0 / 469.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000211/0.3296, allocations: 214.8 kB / 469.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-05/0.3297, allocations: 81.06 kB / 469.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.3297, allocations: 15.91 kB / 469.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3299, allocations: 7.969 kB / 469.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.3299, allocations: 3.984 kB / 469.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.3299, allocations: 4 kB / 469.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.404e-05/0.33, allocations: 79.28 kB / 469.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.33, allocations: 0 / 469.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004894/0.3305, allocations: 23.88 kB / 469.6 MB, free: 1.559 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.0007432/0.3312, allocations: 0.7859 MB / 470.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.3314, allocations: 49.58 kB / 470.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3314, allocations: 0 / 470.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.489e-05/0.3315, allocations: 33.69 kB / 470.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.3319, allocations: 352 / 470.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.3337, allocations: 1.315 MB / 471.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.3341, allocations: 0.6807 MB / 472.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.451e-05/0.3341, allocations: 7.844 kB / 472.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.456e-05/0.3342, allocations: 15.42 kB / 472.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3342, allocations: 4.031 kB / 472.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03309/0.3673, allocations: 1.477 MB / 474 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.097/8.465, allocations: 7.859 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)