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.0007573/0.0007573, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0007422/0.0007422, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9096/0.9096, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.01648/0.01648, allocations: 4.226 MB / 263.4 MB, free: 9.137 MB / 250.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 391.7 MB, free: 4.887 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.791e-05/1.95e-05, allocations: 6.219 kB / 391.7 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004201/0.004221, allocations: 4.66 MB / 396.4 MB, free: 188 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.006566, allocations: 1.795 MB / 398.2 MB, free: 14.38 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003267/0.006893, allocations: 15.88 kB / 398.2 MB, free: 14.37 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004803/0.007373, allocations: 262.2 kB / 398.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004855/0.007858, allocations: 325.5 kB / 398.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.008348, allocations: 331.2 kB / 399.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007774/0.009125, allocations: 1.141 MB / 400.2 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003222/0.009448, allocations: 287.4 kB / 400.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007082/0.01016, allocations: 0.6588 MB / 401.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.01054, allocations: 422.8 kB / 401.6 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.01064, allocations: 116 kB / 401.7 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004013/0.01104, allocations: 183.9 kB / 401.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.01123, allocations: 227.2 kB / 402.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003717/0.0116, allocations: 351.1 kB / 402.4 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.01279, allocations: 1.242 MB / 403.7 MB, free: 8.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.0128, allocations: 3.938 kB / 403.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0128, allocations: 0 / 403.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.672e-05/0.01283, allocations: 3.938 kB / 403.7 MB, free: 8.832 MB / 330.7 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.00204/0.01487, allocations: 1.24 MB / 404.9 MB, free: 7.547 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.01491, allocations: 8.031 kB / 404.9 MB, free: 7.539 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.01502, allocations: 122.7 kB / 405 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.01517, allocations: 100.3 kB / 405.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.01654, allocations: 0.5814 MB / 405.7 MB, free: 6.703 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/0.01658, allocations: 54 kB / 405.8 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.473e-05/0.01667, allocations: 72 kB / 405.8 MB, free: 6.578 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.01768, allocations: 0.8897 MB / 406.7 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.0177, allocations: 3.938 kB / 406.7 MB, free: 5.637 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.831e-05/0.01775, allocations: 32 kB / 406.8 MB, free: 5.605 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.01776, allocations: 20 kB / 406.8 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008877/0.01865, allocations: 0.6513 MB / 407.4 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/0.02152, allocations: 2.485 MB / 409.9 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008982/0.02242, allocations: 0.5447 MB / 410.5 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003405/0.02276, allocations: 265.5 kB / 410.7 MB, free: 1.492 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.853e-05/0.02284, allocations: 16.36 kB / 410.7 MB, free: 1.477 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004781/0.02331, allocations: 0.4958 MB / 411.2 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 2.986e-06/0.02332, allocations: 0 / 411.2 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.1403/0.1636, allocations: 1.11 MB / 412.3 MB, free: 35.96 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.1636, allocations: 201.5 kB / 412.5 MB, free: 35.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005186/0.1642, allocations: 465.1 kB / 413 MB, free: 35.63 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.81e-05/0.1642, allocations: 44.23 kB / 413 MB, free: 35.6 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.1644, allocations: 375.7 kB / 413.4 MB, free: 35.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.1645, allocations: 185.5 kB / 413.6 MB, free: 35.42 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.1647, allocations: 144.7 kB / 413.7 MB, free: 35.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.414e-05/0.1648, allocations: 367.2 kB / 414.1 MB, free: 35.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.1651, allocations: 273.5 kB / 414.4 MB, free: 34.92 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003669/0.1655, allocations: 414.8 kB / 414.8 MB, free: 34.62 MB / 330.7 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.007041/0.1725, allocations: 2.871 MB / 417.6 MB, free: 33.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.1726, allocations: 1.062 kB / 417.6 MB, free: 33.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001098/0.1737, allocations: 0.8928 MB / 418.5 MB, free: 33.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.1737, allocations: 63.94 kB / 418.6 MB, free: 33.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.1737, allocations: 4.125 kB / 418.6 MB, free: 33.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/0.1739, allocations: 84.38 kB / 418.7 MB, free: 33.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003989/0.1743, allocations: 167.3 kB / 418.8 MB, free: 33.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008474/0.1752, allocations: 1.468 MB / 420.3 MB, free: 31.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.1755, allocations: 75.16 kB / 420.4 MB, free: 31.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.1755, allocations: 35.5 kB / 420.4 MB, free: 31.86 MB / 330.7 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.0002888/0.1758, allocations: 290.9 kB / 420.7 MB, free: 31.61 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.688e-05/0.1759, allocations: 63.28 kB / 420.8 MB, free: 31.58 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/0.177, allocations: 1.005 MB / 421.8 MB, free: 31.08 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.177, allocations: 10.38 kB / 421.8 MB, free: 31.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.177, allocations: 3.938 kB / 421.8 MB, free: 31.08 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.177, allocations: 3.656 kB / 421.8 MB, free: 31.08 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.1789, allocations: 1.65 MB / 423.4 MB, free: 30.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.1789, allocations: 1.031 kB / 423.4 MB, free: 30.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.1792, allocations: 105.2 kB / 423.5 MB, free: 30.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004017/0.1796, allocations: 289.6 kB / 423.8 MB, free: 30.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.1797, allocations: 21.11 kB / 423.8 MB, free: 30.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006764/0.1803, allocations: 0.8908 MB / 424.7 MB, free: 29.33 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1803, allocations: 0 / 424.7 MB, free: 29.33 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/0.1821, allocations: 1.378 MB / 426.1 MB, free: 28.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.1823, allocations: 120.2 kB / 426.2 MB, free: 28.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.309e-05/0.1824, allocations: 24.61 kB / 426.2 MB, free: 28.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.1826, allocations: 40.36 kB / 426.3 MB, free: 28.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.1827, allocations: 42.91 kB / 426.3 MB, free: 28.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/0.1828, allocations: 29.3 kB / 426.4 MB, free: 28.46 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003094/0.1831, allocations: 330 kB / 426.7 MB, free: 28.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1831, allocations: 0 / 426.7 MB, free: 28.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005349/0.1836, allocations: 227.5 kB / 426.9 MB, free: 28.25 MB / 330.7 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.001725/0.1853, allocations: 1.974 MB / 428.9 MB, free: 26.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.1864, allocations: 0.91 MB / 429.8 MB, free: 26.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1864, allocations: 0 / 429.8 MB, free: 26.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.1868, allocations: 471.1 kB / 430.2 MB, free: 26.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004486/0.1873, allocations: 122.1 kB / 430.4 MB, free: 26.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005/0.1923, allocations: 5.802 MB / 436.2 MB, free: 22.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.1924, allocations: 337.1 kB / 436.5 MB, free: 22.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002051/0.1926, allocations: 93.92 kB / 436.6 MB, free: 22.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.1929, allocations: 299.6 kB / 436.9 MB, free: 21.91 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1929, allocations: 0 / 436.9 MB, free: 21.91 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.217, allocations: 16.49 MB / 453.4 MB, free: 5.652 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.179, allocations: 11.16 kB / 453.4 MB, free: 5.645 MB / 330.7 MB " [Timeout remaining time 652] (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: 11.652718767523766] Failed to read output from testmodel.py, exit status != 0: 8.2781414501369 8.286944332 8.272299149 Calling exit ...