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.0008517/0.0008517, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005087/0.005087, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.186/1.186, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 3.476/3.476, allocations: 24.89 MB / 295.6 MB, free: 12.26 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.0005095/0.0005097, allocations: 18.19 kB / 359.9 MB, free: 8.113 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09622, allocations: 53.42 MB / 413.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.001581/0.09785, allocations: 1.298 MB / 414.6 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009947/0.09886, allocations: 0.6482 MB / 415.3 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.859e-05/0.09889, allocations: 0 / 415.3 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.954e-05/0.09892, allocations: 0 / 415.3 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.695e-05/0.09897, allocations: 3.938 kB / 415.3 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002902/0.09927, allocations: 67.8 kB / 415.3 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.316e-05/0.09933, allocations: 27.8 kB / 415.4 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.17e-05/0.09938, allocations: 4 kB / 415.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.012e-05/0.0994, allocations: 8 kB / 415.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.857e-05/0.09945, allocations: 11.92 kB / 415.4 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.147e-06/0.09946, allocations: 4 kB / 415.4 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002046/0.09967, allocations: 63.92 kB / 415.5 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.558e-06/0.09969, allocations: 3.984 kB / 415.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.327e-05/0.09974, allocations: 41.64 kB / 415.5 MB, free: 456 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.09987, allocations: 64.03 kB / 415.6 MB, free: 392 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.09988, allocations: 0 / 415.6 MB, free: 392 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09989, allocations: 0 / 415.6 MB, free: 392 kB / 302.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.0999, allocations: 0 / 415.6 MB, free: 392 kB / 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.0002984/0.1002, allocations: 343.4 kB / 415.9 MB, free: 0 / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1003, allocations: 12.08 kB / 415.9 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.703e-05/0.1003, allocations: 42.59 kB / 416 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.158e-05/0.1004, allocations: 4.938 kB / 416 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.1005, allocations: 172.2 kB / 416.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.1005, allocations: 4.375 kB / 416.1 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-06/0.1005, allocations: 384 / 416.1 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.1006, allocations: 67.47 kB / 416.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.261e-06/0.1007, allocations: 4 kB / 416.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.1007, allocations: 0 / 416.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1007, allocations: 0 / 416.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.204e-05/0.1007, allocations: 15.98 kB / 416.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.1011, allocations: 349 kB / 416.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.24e-05/0.1012, allocations: 41.28 kB / 416.6 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.811e-05/0.1012, allocations: 29.58 kB / 416.6 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004185/0.1016, allocations: 202.2 kB / 416.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.1017, allocations: 34.56 kB / 416.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.1017, allocations: 0 / 416.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001687/0.1018, allocations: 53.77 kB / 416.9 MB, free: 14.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.1019, allocations: 85.12 kB / 417 MB, free: 14.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.001e-05/0.102, allocations: 93.86 kB / 417.1 MB, free: 14.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.102, allocations: 29.7 kB / 417.1 MB, free: 14.56 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.034e-05/0.102, allocations: 95.97 kB / 417.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.546e-06/0.1021, allocations: 3.906 kB / 417.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.285e-05/0.1021, allocations: 17.72 kB / 417.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1022, allocations: 314.8 kB / 417.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.019e-05/0.1022, allocations: 0 / 417.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.941e-05/0.1022, allocations: 29.69 kB / 417.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.152e-05/0.1023, allocations: 21.66 kB / 417.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1023, allocations: 0 / 417.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.316e-05/0.1023, allocations: 45.64 kB / 417.6 MB, free: 14.01 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.1024, allocations: 4 kB / 417.6 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.1024, allocations: 11.92 kB / 417.7 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.278e-06/0.1024, allocations: 4.094 kB / 417.7 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-05/0.1024, allocations: 0 / 417.7 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.1024, allocations: 7.984 kB / 417.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.782e-05/0.1025, allocations: 8.094 kB / 417.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.1025, allocations: 0 / 417.7 MB, free: 13.97 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 6.985e-05/0.1026, allocations: 113.8 kB / 417.8 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.1026, allocations: 4 kB / 417.8 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.184e-05/0.1027, allocations: 44.81 kB / 417.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1027, allocations: 8.031 kB / 417.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1027, allocations: 0 / 417.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1027, allocations: 7.875 kB / 417.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.103, allocations: 266.6 kB / 418.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.103, allocations: 0 / 418.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-05/0.103, allocations: 4 kB / 418.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.103, allocations: 0 / 418.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.103, allocations: 0 / 418.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.103, allocations: 3.938 kB / 418.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.103, allocations: 8.031 kB / 418.1 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.1032, allocations: 214.8 kB / 418.3 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.802e-05/0.1032, allocations: 85.02 kB / 418.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.04e-05/0.1032, allocations: 0 / 418.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.775e-05/0.1033, allocations: 3.938 kB / 418.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.431e-05/0.1033, allocations: 7.984 kB / 418.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.1033, allocations: 7.969 kB / 418.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.703e-05/0.1034, allocations: 83.28 kB / 418.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1034, allocations: 0 / 418.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.1036, allocations: 23.94 kB / 418.5 MB, free: 13 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.0004874/0.1041, allocations: 0.7821 MB / 419.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.249e-05/0.1042, allocations: 41.64 kB / 419.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1042, allocations: 0 / 419.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.67e-05/0.1043, allocations: 37.62 kB / 419.4 MB, free: 12.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.1045, allocations: 4 kB / 419.4 MB, free: 12.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.1056, allocations: 1.334 MB / 420.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.1059, allocations: 0.6809 MB / 421.4 MB, free: 9.973 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.847e-06/0.1059, allocations: 0 / 421.4 MB, free: 9.973 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.413e-05/0.1059, allocations: 11.44 kB / 421.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1059, allocations: 0 / 421.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01159/0.1175, allocations: 1.294 MB / 422.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.1178, allocations: 181 kB / 422.9 MB, free: 8.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/1.898, allocations: 0 / 422.9 MB, free: 8.48 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 & /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)