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.004956/0.004955, allocations: 97.8 kB / 15.73 MB, free: 5.996 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.001073/0.001073, allocations: 184.7 kB / 16.67 MB, free: 5.926 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.472/1.472, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.2302/0.2302, allocations: 24.84 MB / 294.7 MB, free: 3.148 MB / 238.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.001402/0.001403, allocations: 72.16 kB / 411.8 MB, free: 33.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09045/0.09186, allocations: 52.3 MB / 464.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.002399/0.09431, allocations: 1.563 MB / 465.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.09529, allocations: 0.656 MB / 466.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.619e-05/0.09533, allocations: 0 / 466.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.178e-05/0.09537, allocations: 0 / 466.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.815e-05/0.09542, allocations: 7.922 kB / 466.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.09575, allocations: 83.66 kB / 466.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.707e-05/0.09582, allocations: 27.86 kB / 466.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.71e-05/0.09586, allocations: 288 / 466.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.785e-05/0.09589, allocations: 4 kB / 466.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.459e-05/0.09592, allocations: 15.92 kB / 466.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.09593, allocations: 4 kB / 466.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000226/0.09617, allocations: 71.84 kB / 466.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.172e-05/0.09619, allocations: 4 kB / 466.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.09621, allocations: 15.88 kB / 466.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.09637, allocations: 63.75 kB / 466.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.09638, allocations: 0 / 466.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.09639, allocations: 3.938 kB / 466.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.0964, allocations: 0 / 466.6 MB, free: 11.12 MB / 350.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.0003162/0.09672, allocations: 347.3 kB / 466.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.09676, allocations: 16.03 kB / 467 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.09682, allocations: 38.67 kB / 467 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.436e-05/0.09685, allocations: 8.891 kB / 467 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.09697, allocations: 168.3 kB / 467.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.09699, allocations: 8.375 kB / 467.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-06/0.097, allocations: 384 / 467.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.09712, allocations: 67.52 kB / 467.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.09714, allocations: 0 / 467.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.09715, allocations: 4 kB / 467.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.09716, allocations: 0 / 467.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.206e-05/0.09719, allocations: 15.94 kB / 467.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.09756, allocations: 353 kB / 467.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.944e-05/0.09763, allocations: 45.14 kB / 467.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.665e-05/0.09767, allocations: 21.84 kB / 467.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004682/0.09814, allocations: 206.2 kB / 467.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.09819, allocations: 38.5 kB / 467.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.0982, allocations: 0 / 467.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001614/0.09837, allocations: 53.62 kB / 468 MB, free: 9.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.09841, allocations: 77.11 kB / 468 MB, free: 9.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.393e-05/0.09849, allocations: 109.8 kB / 468.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.09851, allocations: 25.7 kB / 468.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.09856, allocations: 96.03 kB / 468.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.747e-06/0.09857, allocations: 7.906 kB / 468.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.0986, allocations: 13.72 kB / 468.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.09873, allocations: 327 kB / 468.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.624e-05/0.09875, allocations: 4 kB / 468.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.488e-05/0.09877, allocations: 13.66 kB / 468.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.505e-05/0.09881, allocations: 25.66 kB / 468.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.09881, allocations: 0 / 468.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.458e-05/0.09888, allocations: 45.69 kB / 468.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.0989, allocations: 12.09 kB / 468.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.09892, allocations: 0 / 468.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.09893, allocations: 0 / 468.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.386e-05/0.09897, allocations: 4 kB / 468.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.09898, allocations: 3.938 kB / 468.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.694e-05/0.09901, allocations: 3.938 kB / 468.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.09902, allocations: 0 / 468.7 MB, free: 8.703 MB / 350.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 6.808e-05/0.09909, allocations: 113.8 kB / 468.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.09913, allocations: 7.938 kB / 468.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.428e-05/0.09923, allocations: 48.77 kB / 468.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.09924, allocations: 0 / 468.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.09925, allocations: 0 / 468.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/0.09926, allocations: 3.938 kB / 468.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.09951, allocations: 274.6 kB / 469.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.09952, allocations: 0 / 469.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.088e-05/0.09954, allocations: 4 kB / 469.2 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.09955, allocations: 3.984 kB / 469.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.09956, allocations: 0 / 469.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.09958, allocations: 12 kB / 469.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.09958, allocations: 0 / 469.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001214/0.09971, allocations: 218.8 kB / 469.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.09975, allocations: 85.09 kB / 469.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.078e-05/0.09976, allocations: 0 / 469.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.485e-05/0.09984, allocations: 3.938 kB / 469.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.656e-05/0.09986, allocations: 8.031 kB / 469.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-06/0.09987, allocations: 0 / 469.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.42e-05/0.09991, allocations: 87.53 kB / 469.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09992, allocations: 0 / 469.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.1002, allocations: 27.86 kB / 469.6 MB, free: 7.719 MB / 350.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.0005094/0.1007, allocations: 0.782 MB / 470.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001053/0.1008, allocations: 49.56 kB / 470.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1008, allocations: 0 / 470.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.554e-05/0.1009, allocations: 33.7 kB / 470.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.1012, allocations: 2.812 kB / 470.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.1022, allocations: 1.323 MB / 471.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.1025, allocations: 0.6807 MB / 472.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.528e-06/0.1025, allocations: 3.906 kB / 472.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.1025, allocations: 15.44 kB / 472.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1025, allocations: 0 / 472.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.1202, allocations: 1.478 MB / 474 MB, free: 3.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.442/8.562, allocations: 8.062 kB / 474 MB, free: 3.211 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 & 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)