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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 109.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.05004/0.05004, allocations: 5.476 MB / 308.2 MB, free: 4.426 MB / 238.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(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 0.001949/0.001949, allocations: 71.88 kB / 432.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1021, allocations: 53.39 MB / 485.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007033/0.1092, allocations: 5.179 MB / 490.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003575/0.1127, allocations: 1.877 MB / 492.5 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005152/0.1132, allocations: 12 kB / 492.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007864/0.114, allocations: 302 kB / 492.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007644/0.1148, allocations: 309.8 kB / 493.1 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000654/0.1155, allocations: 315.4 kB / 493.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.1167, allocations: 1.114 MB / 494.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005123/0.1173, allocations: 310.9 kB / 494.9 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005621/0.1178, allocations: 454.4 kB / 495.3 MB, free: 116 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007356/0.1186, allocations: 0.5214 MB / 495.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.1187, allocations: 112 kB / 495.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002802/0.119, allocations: 179.9 kB / 496.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.1192, allocations: 231.2 kB / 496.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004769/0.1197, allocations: 0.4899 MB / 496.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.121, allocations: 1.179 MB / 498 MB, free: 13.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.121, allocations: 3.984 kB / 498 MB, free: 13.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.121, allocations: 0 / 498 MB, free: 13.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.771e-05/0.121, allocations: 7.938 kB / 498 MB, free: 13.39 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.003076/0.1241, allocations: 1.32 MB / 499.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.1241, allocations: 12.02 kB / 499.3 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001473/0.1243, allocations: 114.7 kB / 499.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.1244, allocations: 96.38 kB / 499.6 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.126, allocations: 0.651 MB / 0.4885 GB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.759e-05/0.126, allocations: 61.94 kB / 0.4885 GB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.1262, allocations: 68 kB / 0.4886 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.1276, allocations: 0.7854 MB / 0.4894 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.1276, allocations: 0 / 0.4894 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.327e-05/0.1277, allocations: 32 kB / 0.4894 GB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.1277, allocations: 20 kB / 0.4894 GB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.1291, allocations: 0.5972 MB / 0.49 GB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004535/0.1336, allocations: 2.739 MB / 0.4927 GB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.1352, allocations: 0.8656 MB / 0.4935 GB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/0.1358, allocations: 210 kB / 0.4937 GB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.1359, allocations: 93.45 kB / 0.4938 GB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007418/0.1367, allocations: 381.4 kB / 0.4942 GB, free: 4.953 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.815e-06/0.1367, allocations: 4 kB / 0.4942 GB, free: 4.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003189/0.1399, allocations: 1.047 MB / 0.4952 GB, free: 3.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.14, allocations: 200.3 kB / 0.4954 GB, free: 3.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006384/0.1406, allocations: 465.9 kB / 0.4958 GB, free: 3.152 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.993e-05/0.1407, allocations: 41.7 kB / 0.4959 GB, free: 3.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/0.141, allocations: 364.4 kB / 0.4962 GB, free: 2.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.1412, allocations: 194.4 kB / 0.4964 GB, free: 2.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.1414, allocations: 142.6 kB / 0.4965 GB, free: 2.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002398/0.1416, allocations: 362.8 kB / 0.4969 GB, free: 2.043 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005504/0.1422, allocations: 225.9 kB / 0.4971 GB, free: 1.824 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006641/0.1429, allocations: 361.8 kB / 0.4975 GB, free: 1.418 MB / 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.01258/0.1554, allocations: 2.384 MB / 0.4998 GB, free: 14.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/0.1555, allocations: 7.938 kB / 0.4998 GB, free: 14.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002198/0.1577, allocations: 0.8152 MB / 0.5006 GB, free: 14.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-05/0.1577, allocations: 63.39 kB / 0.5006 GB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.1577, allocations: 4 kB / 0.5006 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000485/0.1582, allocations: 84.94 kB / 0.5007 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008165/0.159, allocations: 167.7 kB / 0.5009 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.1609, allocations: 1.574 MB / 0.5024 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008101/0.1617, allocations: 79.53 kB / 0.5025 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.657e-05/0.1618, allocations: 35.98 kB / 0.5025 GB, free: 11.92 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.0005321/0.1623, allocations: 288.2 kB / 0.5028 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.1624, allocations: 67.62 kB / 0.5029 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.1644, allocations: 0.9048 MB / 0.5038 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1644, allocations: 4 kB / 0.5038 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1644, allocations: 7.938 kB / 0.5038 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.1644, allocations: 3.984 kB / 0.5038 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004323/0.1687, allocations: 1.806 MB / 0.5055 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1687, allocations: 3.938 kB / 0.5055 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004716/0.1692, allocations: 103.9 kB / 0.5056 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005683/0.1698, allocations: 254.4 kB / 0.5059 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.133e-05/0.1698, allocations: 27.92 kB / 0.5059 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.1709, allocations: 0.8233 MB / 0.5067 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1709, allocations: 4.031 kB / 0.5067 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003698/0.1746, allocations: 1.346 MB / 0.508 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003093/0.1749, allocations: 200.5 kB / 0.5082 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.175, allocations: 20 kB / 0.5082 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005326/0.1756, allocations: 43.97 kB / 0.5083 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.1757, allocations: 48.44 kB / 0.5083 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.302e-05/0.1757, allocations: 27.97 kB / 0.5084 GB, free: 5.742 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004444/0.1762, allocations: 326.9 kB / 0.5087 GB, free: 5.426 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1762, allocations: 0 / 0.5087 GB, free: 5.426 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007196/0.1769, allocations: 235.5 kB / 0.5089 GB, free: 5.195 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.004189/0.1811, allocations: 1.934 MB / 0.5108 GB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001721/0.1828, allocations: 0.7919 MB / 0.5116 GB, free: 2.383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1828, allocations: 4.062 kB / 0.5116 GB, free: 2.379 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008612/0.1837, allocations: 405.8 kB / 0.5119 GB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007321/0.1844, allocations: 129.1 kB / 0.5121 GB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2011/0.3855, allocations: 5.552 MB / 0.5175 GB, free: 41.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.3859, allocations: 0.9324 MB / 0.5184 GB, free: 40.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003667/0.3863, allocations: 94.06 kB / 0.5185 GB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003554/0.3867, allocations: 295.2 kB / 0.5188 GB, free: 40.77 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3867, allocations: 0 / 0.5188 GB, free: 40.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04399/0.4307, allocations: 15.59 MB / 0.534 GB, free: 35.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.22, allocations: 0 / 0.534 GB, free: 35.71 MB / 382.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 sys.exit(0), Time elapsed: 19.637361884117126] Failed to read output from testmodel.py, exit status != 0: 13.324979652650654 13.335191441 13.212072899 Calling exit ...