Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.0282/0.0282, allocations: 5.48 MB / 315 MB, free: 1.555 MB / 238.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 71.59 kB / 441.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1037, allocations: 54.58 MB / 495.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.00524/0.109, allocations: 5.191 MB / 0.4893 GB, free: 3.633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003247/0.1122, allocations: 1.92 MB / 0.4912 GB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006313/0.1128, allocations: 12 kB / 0.4912 GB, free: 1.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007008/0.1135, allocations: 294 kB / 0.4915 GB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006326/0.1142, allocations: 313.7 kB / 0.4918 GB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.1147, allocations: 323.5 kB / 0.4921 GB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008668/0.1156, allocations: 1.11 MB / 0.4932 GB, free: 15.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004834/0.1161, allocations: 302.9 kB / 0.4935 GB, free: 15.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005835/0.1167, allocations: 466.4 kB / 0.4939 GB, free: 14.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006445/0.1173, allocations: 0.5331 MB / 0.4944 GB, free: 14.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.1174, allocations: 115.9 kB / 0.4946 GB, free: 14.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000295/0.1177, allocations: 191.9 kB / 0.4947 GB, free: 14.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.1179, allocations: 231.2 kB / 0.495 GB, free: 13.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00046/0.1184, allocations: 489.7 kB / 0.4954 GB, free: 13.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00129/0.1197, allocations: 1.195 MB / 0.4966 GB, free: 12.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1197, allocations: 0 / 0.4966 GB, free: 12.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1197, allocations: 3.938 kB / 0.4966 GB, free: 12.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.1197, allocations: 0 / 0.4966 GB, free: 12.14 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.002928/0.1226, allocations: 1.32 MB / 0.4979 GB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1227, allocations: 12.03 kB / 0.4979 GB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.361e-05/0.1227, allocations: 26.19 kB / 0.4979 GB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.1228, allocations: 114.7 kB / 0.498 GB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.123, allocations: 100.3 kB / 0.4981 GB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.1244, allocations: 0.6429 MB / 0.4988 GB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.083e-05/0.1244, allocations: 54 kB / 0.4988 GB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.1245, allocations: 83.92 kB / 0.4989 GB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.1259, allocations: 0.7776 MB / 0.4996 GB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.1259, allocations: 0 / 0.4996 GB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.126, allocations: 32 kB / 0.4997 GB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.126, allocations: 20 kB / 0.4997 GB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1274, allocations: 0.5972 MB / 0.5003 GB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004181/0.1316, allocations: 2.735 MB / 0.5029 GB, free: 5.379 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.1331, allocations: 0.857 MB / 0.5038 GB, free: 4.422 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005246/0.1336, allocations: 210 kB / 0.504 GB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.1338, allocations: 85.48 kB / 0.5041 GB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007334/0.1345, allocations: 397.4 kB / 0.5044 GB, free: 3.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.294e-06/0.1345, allocations: 0 / 0.5044 GB, free: 3.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.0029/0.1374, allocations: 1.027 MB / 0.5054 GB, free: 2.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.1375, allocations: 200.3 kB / 0.5056 GB, free: 2.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005691/0.1381, allocations: 458 kB / 0.5061 GB, free: 1.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.699e-05/0.1382, allocations: 37.7 kB / 0.5061 GB, free: 1.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002771/0.1384, allocations: 384.3 kB / 0.5065 GB, free: 1.512 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.1386, allocations: 186.5 kB / 0.5067 GB, free: 1.328 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.1388, allocations: 146.6 kB / 0.5068 GB, free: 1.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.139, allocations: 362.8 kB / 0.5071 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005254/0.1395, allocations: 217.9 kB / 0.5073 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000625/0.1402, allocations: 365.8 kB / 0.5077 GB, free: 192 kB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/0.1547, allocations: 2.915 MB / 0.5105 GB, free: 13.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.1547, allocations: 0 / 0.5105 GB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001934/0.1566, allocations: 0.8268 MB / 0.5114 GB, free: 12.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/0.1567, allocations: 61.28 kB / 0.5114 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.1567, allocations: 7.938 kB / 0.5114 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000449/0.1572, allocations: 88.94 kB / 0.5115 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000777/0.1579, allocations: 167.7 kB / 0.5117 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.1596, allocations: 1.586 MB / 0.5132 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006534/0.1603, allocations: 67.61 kB / 0.5133 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.42e-05/0.1603, allocations: 39.91 kB / 0.5133 GB, free: 10.14 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 22 (irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004656/0.1608, allocations: 293.1 kB / 0.5136 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.1609, allocations: 67.56 kB / 0.5137 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.1629, allocations: 0.9009 MB / 0.5145 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.1629, allocations: 8 kB / 0.5145 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.1629, allocations: 0 / 0.5145 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1629, allocations: 0 / 0.5145 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/0.1658, allocations: 1.674 MB / 0.5162 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1658, allocations: 0 / 0.5162 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004846/0.1663, allocations: 99.88 kB / 0.5163 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005747/0.1669, allocations: 262.3 kB / 0.5165 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.268e-05/0.1669, allocations: 23.92 kB / 0.5165 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.168, allocations: 0.8156 MB / 0.5173 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.168, allocations: 4.031 kB / 0.5173 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002457/0.1705, allocations: 1.214 MB / 0.5185 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.1707, allocations: 192.5 kB / 0.5187 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.1708, allocations: 35.83 kB / 0.5188 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/0.1713, allocations: 39.97 kB / 0.5188 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.1714, allocations: 48.44 kB / 0.5188 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/0.1715, allocations: 31.97 kB / 0.5189 GB, free: 4.246 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003918/0.1719, allocations: 322.9 kB / 0.5192 GB, free: 3.934 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1719, allocations: 0 / 0.5192 GB, free: 3.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007277/0.1726, allocations: 231.5 kB / 0.5194 GB, free: 3.707 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (converter.integrator.y,battery.energy,battery.capacitor.v) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 13 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003003/0.1756, allocations: 1.813 MB / 0.5212 GB, free: 1.852 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.1773, allocations: 0.7876 MB / 0.5219 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1773, allocations: 0 / 0.5219 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000762/0.1781, allocations: 401.8 kB / 0.5223 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007165/0.1788, allocations: 124.3 kB / 0.5224 GB, free: 496 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009352/0.1881, allocations: 5.564 MB / 0.5279 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.1887, allocations: 0.934 MB / 0.5288 GB, free: 9.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003511/0.1891, allocations: 92.95 kB / 0.5289 GB, free: 9.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004335/0.1895, allocations: 291.3 kB / 0.5291 GB, free: 9.363 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1895, allocations: 0 / 0.5291 GB, free: 9.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03956/0.229, allocations: 15.67 MB / 0.5445 GB, free: 9.887 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.73, allocations: 0 / 0.5445 GB, free: 9.887 MB / 414.1 MB " [Timeout remaining time 647] (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC_fmu --startTime=0 --stopTime=86400 --stepSize=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.437219835002907] Failed to read output from testmodel.py, exit status != 0: 12.888952503039036 12.912671659999999 12.788340434 Calling exit ...