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.001082/0.001082, allocations: 108 kB / 15.6 MB, free: 132 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.001124/0.001124, allocations: 194.7 kB / 16.53 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.332/1.332, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.2135/0.2135, allocations: 24.82 MB / 294.6 MB, free: 12.4 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.001602/0.001602, allocations: 69.06 kB / 358 MB, free: 8.012 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1179, allocations: 52.29 MB / 410.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.003427/0.1214, allocations: 1.564 MB / 411.8 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1226, allocations: 0.6597 MB / 412.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.127e-05/0.1227, allocations: 0 / 412.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.679e-05/0.1228, allocations: 3.984 kB / 412.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.253e-05/0.1229, allocations: 7.922 kB / 412.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006084/0.1235, allocations: 79.66 kB / 412.6 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.174e-05/0.1236, allocations: 19.88 kB / 412.6 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.097e-05/0.1236, allocations: 0 / 412.6 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.741e-05/0.1237, allocations: 19.92 kB / 412.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.147e-05/0.1237, allocations: 7.938 kB / 412.6 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.1238, allocations: 7.938 kB / 412.6 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002978/0.1241, allocations: 67.91 kB / 412.7 MB, free: 1.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.4e-05/0.1241, allocations: 4 kB / 412.7 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.549e-05/0.1241, allocations: 11.94 kB / 412.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.1243, allocations: 60.09 kB / 412.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1243, allocations: 3.984 kB / 412.8 MB, free: 1.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1243, allocations: 0 / 412.8 MB, free: 1.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.1244, allocations: 0 / 412.8 MB, free: 1.148 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.0004526/0.1248, allocations: 355.3 kB / 413.1 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.1249, allocations: 12.03 kB / 413.2 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.628e-05/0.125, allocations: 42.64 kB / 413.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.125, allocations: 4.938 kB / 413.2 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.1252, allocations: 176.2 kB / 413.4 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1252, allocations: 384 / 413.4 MB, free: 488 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.1252, allocations: 8.375 kB / 413.4 MB, free: 480 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.1254, allocations: 59.53 kB / 413.4 MB, free: 408 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1254, allocations: 4 kB / 413.4 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.1254, allocations: 7.938 kB / 413.4 MB, free: 396 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1254, allocations: 0 / 413.4 MB, free: 396 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.444e-05/0.1255, allocations: 8 kB / 413.5 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004594/0.1259, allocations: 356.9 kB / 413.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.2e-05/0.126, allocations: 49.14 kB / 413.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.923e-05/0.126, allocations: 17.84 kB / 413.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005669/0.1266, allocations: 210.1 kB / 414.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.1267, allocations: 42.55 kB / 414.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.1267, allocations: 0 / 414.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002134/0.1269, allocations: 45.64 kB / 414.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.1269, allocations: 77.11 kB / 414.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.1271, allocations: 105.8 kB / 414.3 MB, free: 15.33 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.1271, allocations: 25.7 kB / 414.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.817e-05/0.1271, allocations: 95.98 kB / 414.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.1272, allocations: 12.14 kB / 414.5 MB, free: 15.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.1272, allocations: 13.72 kB / 414.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1273, allocations: 318.8 kB / 414.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.758e-05/0.1274, allocations: 4 kB / 414.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.251e-05/0.1274, allocations: 9.719 kB / 414.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.759e-05/0.1274, allocations: 29.64 kB / 414.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1275, allocations: 4.031 kB / 414.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.198e-05/0.1275, allocations: 45.61 kB / 414.9 MB, free: 14.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1276, allocations: 8 kB / 414.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.1276, allocations: 3.938 kB / 414.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.1276, allocations: 0 / 414.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.134e-05/0.1277, allocations: 11.88 kB / 414.9 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1277, allocations: 0 / 414.9 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.369e-05/0.1277, allocations: 7.922 kB / 414.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.1277, allocations: 0 / 414.9 MB, free: 14.71 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 7.865e-05/0.1278, allocations: 113.9 kB / 415 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.1278, allocations: 0 / 415 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001133/0.128, allocations: 48.81 kB / 415.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.128, allocations: 0 / 415.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.128, allocations: 0 / 415.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.128, allocations: 3.938 kB / 415.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002988/0.1283, allocations: 274.6 kB / 415.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.1283, allocations: 4.062 kB / 415.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.393e-05/0.1283, allocations: 4 kB / 415.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1283, allocations: 0 / 415.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.1284, allocations: 0 / 415.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.1284, allocations: 7.938 kB / 415.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1284, allocations: 0 / 415.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.1285, allocations: 223 kB / 415.6 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/0.1286, allocations: 85.14 kB / 415.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.1286, allocations: 4 kB / 415.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.337e-05/0.1287, allocations: 3.938 kB / 415.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.866e-05/0.1287, allocations: 4 kB / 415.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.1287, allocations: 0 / 415.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.871e-05/0.1288, allocations: 83.27 kB / 415.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1288, allocations: 0 / 415.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.1291, allocations: 23.94 kB / 415.8 MB, free: 13.74 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.0005406/0.1296, allocations: 0.7898 MB / 416.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.1297, allocations: 37.64 kB / 416.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1297, allocations: 0 / 416.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.328e-05/0.1298, allocations: 41.64 kB / 416.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.1301, allocations: 8.328 kB / 416.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.1313, allocations: 1.307 MB / 418 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.1317, allocations: 0.6845 MB / 418.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.091e-05/0.1317, allocations: 0 / 418.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.1318, allocations: 15.44 kB / 418.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1318, allocations: 0 / 418.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.1541, allocations: 1.445 MB / 420.1 MB, free: 9.262 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.293/8.447, allocations: 15.91 kB / 420.1 MB, free: 9.246 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)