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.001702/0.001702, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.002069/0.002069, allocations: 221.2 kB / 23.03 MB, free: 4.945 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.418/1.418, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.02879/0.02879, allocations: 5.485 MB / 318.7 MB, free: 13.56 MB / 254.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.00294/0.00294, allocations: 59.91 kB / 446.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.13, allocations: 54.63 MB / 0.4897 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.00937/0.1394, allocations: 4.65 MB / 0.4943 GB, free: 8.285 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004013/0.1434, allocations: 1.784 MB / 0.496 GB, free: 6.496 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007887/0.1442, allocations: 12 kB / 0.496 GB, free: 6.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.1452, allocations: 270.1 kB / 0.4963 GB, free: 6.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.1464, allocations: 321.7 kB / 0.4966 GB, free: 5.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008547/0.1472, allocations: 319.5 kB / 0.4969 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001606/0.1488, allocations: 1.102 MB / 0.498 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006106/0.1494, allocations: 311.4 kB / 0.4983 GB, free: 4.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008226/0.1503, allocations: 462.4 kB / 0.4987 GB, free: 3.703 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009314/0.1512, allocations: 0.5331 MB / 0.4992 GB, free: 3.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002775/0.1515, allocations: 115.9 kB / 0.4993 GB, free: 3.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004605/0.1519, allocations: 187.9 kB / 0.4995 GB, free: 2.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002859/0.1522, allocations: 227.2 kB / 0.4997 GB, free: 2.648 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006047/0.1528, allocations: 414.1 kB / 0.5001 GB, free: 2.242 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001448/0.1543, allocations: 1.199 MB / 0.5013 GB, free: 1.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1543, allocations: 0 / 0.5013 GB, free: 1.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1543, allocations: 3.938 kB / 0.5013 GB, free: 1.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.933e-05/0.1543, allocations: 0 / 0.5013 GB, free: 1.035 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.003393/0.1577, allocations: 1.249 MB / 0.5025 GB, free: 15.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1577, allocations: 8.031 kB / 0.5025 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.118e-05/0.1578, allocations: 26.12 kB / 0.5026 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00019/0.158, allocations: 122.7 kB / 0.5027 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.1582, allocations: 96.33 kB / 0.5028 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.1597, allocations: 0.5812 MB / 0.5033 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.94e-05/0.1598, allocations: 58 kB / 0.5034 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.1599, allocations: 79.94 kB / 0.5035 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001644/0.1616, allocations: 0.8936 MB / 0.5043 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.1616, allocations: 0 / 0.5043 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-05/0.1617, allocations: 32 kB / 0.5044 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.1617, allocations: 23.98 kB / 0.5044 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.1631, allocations: 0.6552 MB / 0.505 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004248/0.1674, allocations: 2.465 MB / 0.5074 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.1689, allocations: 0.5428 MB / 0.508 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.1695, allocations: 265.4 kB / 0.5082 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.324e-05/0.1696, allocations: 20.3 kB / 0.5082 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008164/0.1704, allocations: 0.492 MB / 0.5087 GB, free: 9.098 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 4.829e-06/0.1704, allocations: 4 kB / 0.5087 GB, free: 9.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003087/0.1735, allocations: 1.111 MB / 0.5098 GB, free: 7.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.1736, allocations: 200.3 kB / 0.51 GB, free: 7.691 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006008/0.1742, allocations: 465.9 kB / 0.5105 GB, free: 7.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.812e-05/0.1742, allocations: 37.7 kB / 0.5105 GB, free: 7.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.1746, allocations: 372.4 kB / 0.5108 GB, free: 6.816 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.1748, allocations: 190.5 kB / 0.511 GB, free: 6.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000301/0.1751, allocations: 142.6 kB / 0.5112 GB, free: 6.484 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002722/0.1754, allocations: 366.8 kB / 0.5115 GB, free: 6.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00066/0.176, allocations: 269.3 kB / 0.5118 GB, free: 5.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007432/0.1768, allocations: 425.3 kB / 0.5122 GB, free: 5.352 MB / 382.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.01578/0.1926, allocations: 2.872 MB / 0.515 GB, free: 2.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.1926, allocations: 0 / 0.515 GB, free: 2.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002224/0.1948, allocations: 0.8792 MB / 0.5158 GB, free: 1.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.69e-05/0.1949, allocations: 63.39 kB / 0.5159 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.1949, allocations: 4 kB / 0.5159 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004842/0.1954, allocations: 88.97 kB / 0.516 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008543/0.1962, allocations: 163.7 kB / 0.5161 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.229/0.4252, allocations: 1.463 MB / 0.5176 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000874/0.426, allocations: 75.61 kB / 0.5176 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.4261, allocations: 36.5 kB / 0.5177 GB, free: 31.95 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.0004256/0.4265, allocations: 295.5 kB / 0.518 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.4266, allocations: 66.36 kB / 0.518 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.4284, allocations: 1.002 MB / 0.519 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.4284, allocations: 7.125 kB / 0.519 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.4284, allocations: 2.219 kB / 0.519 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.4284, allocations: 4.922 kB / 0.519 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/0.4311, allocations: 1.65 MB / 0.5206 GB, free: 31.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.4311, allocations: 1.5 kB / 0.5206 GB, free: 31.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004795/0.4316, allocations: 100.4 kB / 0.5207 GB, free: 31.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005772/0.4322, allocations: 291.9 kB / 0.521 GB, free: 31.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/0.4323, allocations: 24.64 kB / 0.521 GB, free: 31.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009973/0.4333, allocations: 0.8891 MB / 0.5219 GB, free: 30.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4333, allocations: 1.781 kB / 0.5219 GB, free: 30.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.4358, allocations: 1.382 MB / 0.5232 GB, free: 30.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.4361, allocations: 130.8 kB / 0.5234 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.4362, allocations: 18.88 kB / 0.5234 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005216/0.4367, allocations: 38.36 kB / 0.5234 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.4369, allocations: 51 kB / 0.5235 GB, free: 30.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.434e-05/0.4369, allocations: 28.7 kB / 0.5235 GB, free: 30.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00039/0.4373, allocations: 328.8 kB / 0.5238 GB, free: 29.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4373, allocations: 0 / 0.5238 GB, free: 29.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007358/0.438, allocations: 232 kB / 0.524 GB, free: 29.92 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.00279/0.4408, allocations: 1.974 MB / 0.526 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.4425, allocations: 0.9144 MB / 0.5269 GB, free: 28.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.4425, allocations: 8.859 kB / 0.5269 GB, free: 28.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006967/0.4432, allocations: 468.3 kB / 0.5273 GB, free: 28.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007165/0.4439, allocations: 127.4 kB / 0.5274 GB, free: 28.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009038/0.4529, allocations: 5.828 MB / 0.5331 GB, free: 24.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.4534, allocations: 341.2 kB / 0.5334 GB, free: 24.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004247/0.4538, allocations: 94.23 kB / 0.5335 GB, free: 24.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.4542, allocations: 295.7 kB / 0.5338 GB, free: 24.54 MB / 382.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4542, allocations: 4 kB / 0.5338 GB, free: 24.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04003/0.4942, allocations: 16.15 MB / 0.5496 GB, free: 16.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/13.96, allocations: 0 / 0.5496 GB, free: 16.08 MB / 382.1 MB " [Timeout remaining time 646] (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 sys.exit(0), Time elapsed: 20.48493341403082] Failed to read output from testmodel.py, exit status != 0: 14.143005241057836 14.160055692 14.002257053 Calling exit ...