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.008788/0.008788, allocations: 99.66 kB / 15.73 MB, free: 6.477 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.001527/0.001528, allocations: 189.9 kB / 16.67 MB, free: 6.391 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.656/1.656, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.2505/0.2505, allocations: 24.84 MB / 294.7 MB, free: 12.3 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.001683/0.001683, allocations: 68.47 kB / 411.8 MB, free: 2.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3488, allocations: 52.29 MB / 464.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.003089/0.352, allocations: 1.565 MB / 465.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.3532, allocations: 0.653 MB / 466.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.7e-05/0.3532, allocations: 3.938 kB / 466.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.209e-05/0.3533, allocations: 7.922 kB / 466.3 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.914e-05/0.3533, allocations: 7.938 kB / 466.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.3537, allocations: 75.72 kB / 466.4 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.697e-05/0.3538, allocations: 23.88 kB / 466.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.407e-05/0.3539, allocations: 0 / 466.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.903e-05/0.3539, allocations: 15.92 kB / 466.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.06e-05/0.3539, allocations: 7.984 kB / 466.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.3539, allocations: 4 kB / 466.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000265/0.3542, allocations: 67.86 kB / 466.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.3542, allocations: 7.938 kB / 466.5 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.3543, allocations: 11.94 kB / 466.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.3544, allocations: 74.17 kB / 466.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3545, allocations: 0 / 466.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3545, allocations: 0 / 466.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.3545, allocations: 3.938 kB / 466.6 MB, free: 4.973 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.0003909/0.3549, allocations: 347.4 kB / 466.9 MB, free: 4.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3549, allocations: 8.031 kB / 466.9 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.117e-05/0.355, allocations: 38.66 kB / 467 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.355, allocations: 4.938 kB / 467 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.3552, allocations: 172.3 kB / 467.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.3552, allocations: 8.375 kB / 467.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.3552, allocations: 4.375 kB / 467.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.3553, allocations: 59.53 kB / 467.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3554, allocations: 0 / 467.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.3554, allocations: 4 kB / 467.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3554, allocations: 4 kB / 467.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.954e-05/0.3554, allocations: 7.938 kB / 467.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.3559, allocations: 360.9 kB / 467.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.49e-05/0.356, allocations: 41.22 kB / 467.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.865e-05/0.356, allocations: 21.7 kB / 467.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005115/0.3565, allocations: 218.2 kB / 467.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.3566, allocations: 38.48 kB / 467.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.3566, allocations: 0 / 467.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000205/0.3568, allocations: 45.61 kB / 468 MB, free: 3.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.3568, allocations: 88.98 kB / 468 MB, free: 3.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.157e-05/0.3569, allocations: 102.1 kB / 468.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.3569, allocations: 29.7 kB / 468.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.357, allocations: 88.05 kB / 468.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.357, allocations: 15.83 kB / 468.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.3571, allocations: 13.72 kB / 468.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3572, allocations: 318.8 kB / 468.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.627e-05/0.3572, allocations: 4 kB / 468.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.848e-05/0.3572, allocations: 13.72 kB / 468.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.838e-05/0.3573, allocations: 25.73 kB / 468.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3573, allocations: 0 / 468.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.876e-05/0.3574, allocations: 45.64 kB / 468.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3574, allocations: 8 kB / 468.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.3574, allocations: 0 / 468.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3574, allocations: 0 / 468.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.366e-05/0.3575, allocations: 4 kB / 468.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3575, allocations: 3.984 kB / 468.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.848e-05/0.3575, allocations: 8 kB / 468.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.3575, allocations: 3.984 kB / 468.7 MB, free: 2.555 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.856e-05/0.3576, allocations: 113.8 kB / 468.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.3577, allocations: 3.906 kB / 468.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.804e-05/0.3578, allocations: 48.81 kB / 468.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3578, allocations: 3.938 kB / 468.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3578, allocations: 0 / 468.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3578, allocations: 3.938 kB / 468.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002802/0.3581, allocations: 278.6 kB / 469.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.3581, allocations: 4 kB / 469.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.009e-05/0.3581, allocations: 256 / 469.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3581, allocations: 0 / 469.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.3581, allocations: 8 kB / 469.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3581, allocations: 3.938 kB / 469.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3581, allocations: 0 / 469.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.3583, allocations: 214.9 kB / 469.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.3583, allocations: 81.02 kB / 469.5 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.3584, allocations: 7.938 kB / 469.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.474e-05/0.3584, allocations: 11.88 kB / 469.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.3585, allocations: 0 / 469.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.3585, allocations: 0 / 469.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.298e-05/0.3585, allocations: 83.27 kB / 469.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3585, allocations: 0 / 469.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002768/0.3588, allocations: 27.97 kB / 469.6 MB, free: 1.574 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.0005165/0.3593, allocations: 0.7782 MB / 470.4 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001152/0.3595, allocations: 41.58 kB / 470.4 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3595, allocations: 4.219 kB / 470.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.764e-05/0.3595, allocations: 37.7 kB / 470.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3598, allocations: 3.984 kB / 470.4 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.3609, allocations: 1.315 MB / 471.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.3612, allocations: 0.6846 MB / 472.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.121e-05/0.3612, allocations: 0 / 472.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.3612, allocations: 11.44 kB / 472.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3612, allocations: 0 / 472.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.3812, allocations: 1.488 MB / 473.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.627, allocations: 19.05 kB / 474 MB, free: 13.05 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)