Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 1.045/1.045, allocations: 5.396 MB / 20.89 MB, free: 1.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01034/0.01034, allocations: 103.2 kB / 22.88 MB, free: 0.6367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 190.9 kB / 24.99 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 249.9 MB, free: 8.496 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.2719/0.2719, allocations: 2.318 MB / 303.5 MB, free: 6.535 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003452/0.003452, allocations: 99.84 kB / 370.8 MB, free: 3.258 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1934, allocations: 51.21 MB / 422 MB, free: 25.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.005534/0.1989, allocations: 6.754 MB / 428.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.2023, allocations: 3.142 MB / 431.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003201/0.2026, allocations: 16 kB / 431.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001876/0.2045, allocations: 1.099 MB / 433 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001192/0.2057, allocations: 0.839 MB / 433.8 MB, free: 14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.2068, allocations: 0.5341 MB / 434.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007342/0.2075, allocations: 1.379 MB / 435.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009685/0.2085, allocations: 1.028 MB / 436.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003546/0.2089, allocations: 0.5605 MB / 437.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005323/0.2094, allocations: 0.7121 MB / 438 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.2095, allocations: 140 kB / 438.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005103/0.2101, allocations: 435.7 kB / 438.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.2102, allocations: 291 kB / 438.9 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003509/0.2106, allocations: 0.6376 MB / 439.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.2116, allocations: 1.725 MB / 441.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2116, allocations: 0 / 441.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2116, allocations: 0 / 441.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.2116, allocations: 0 / 441.2 MB, free: 6.539 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: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.003316/0.2149, allocations: 1.767 MB / 443 MB, free: 4.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.825e-05/0.215, allocations: 12.03 kB / 443 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.2151, allocations: 168.8 kB / 443.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001941/0.2171, allocations: 363.3 kB / 443.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.2184, allocations: 0.7559 MB / 444.3 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.2185, allocations: 82.06 kB / 444.4 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.2186, allocations: 107.9 kB / 444.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.2202, allocations: 1.183 MB / 445.7 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.2203, allocations: 0 / 445.7 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.32e-05/0.2204, allocations: 44 kB / 445.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.2204, allocations: 24 kB / 445.7 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/0.2223, allocations: 1.034 MB / 446.8 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005543/0.2278, allocations: 4.408 MB / 451.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/0.2307, allocations: 1.772 MB / 453 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000755/0.2315, allocations: 369.3 kB / 453.3 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.2316, allocations: 174.7 kB / 453.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009317/0.2326, allocations: 0.5591 MB / 454 MB, free: 9.066 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 1.823e-06/0.2326, allocations: 0 / 454 MB, free: 9.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005989/0.2386, allocations: 1.702 MB / 455.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.2387, allocations: 277.7 kB / 456 MB, free: 6.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006104/0.2393, allocations: 0.5614 MB / 456.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.488e-05/0.2394, allocations: 37.7 kB / 456.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.2397, allocations: 490.7 kB / 457.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.2399, allocations: 264.4 kB / 457.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.2402, allocations: 206.7 kB / 457.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2403, allocations: 382.8 kB / 457.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007665/0.2411, allocations: 330.4 kB / 458.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009225/0.242, allocations: 0.5682 MB / 458.8 MB, free: 4.043 MB / 318.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.01748/0.2595, allocations: 3.631 MB / 462.4 MB, free: 252 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.2595, allocations: 7.938 kB / 462.5 MB, free: 244 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002467/0.262, allocations: 1.205 MB / 463.7 MB, free: 15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.498e-05/0.2621, allocations: 87.61 kB / 463.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.2621, allocations: 11.98 kB / 463.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004521/0.2626, allocations: 92.95 kB / 463.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.2636, allocations: 255.5 kB / 464.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.2651, allocations: 1.578 MB / 465.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008208/0.2659, allocations: 115.2 kB / 465.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.764e-05/0.266, allocations: 55.95 kB / 465.8 MB, free: 12.66 MB / 334.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: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,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,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * 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.0004146/0.2664, allocations: 373.2 kB / 466.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.2666, allocations: 83 kB / 466.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/0.2692, allocations: 1.249 MB / 467.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.2692, allocations: 8 kB / 467.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.2692, allocations: 4 kB / 467.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.2692, allocations: 3.984 kB / 467.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003737/0.273, allocations: 2.274 MB / 469.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.273, allocations: 8.031 kB / 469.8 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000595/0.2736, allocations: 131.8 kB / 470 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007884/0.2744, allocations: 334.2 kB / 470.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.121e-05/0.2745, allocations: 35.97 kB / 470.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.2758, allocations: 0.8973 MB / 471.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2758, allocations: 0 / 471.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00304/0.2788, allocations: 1.634 MB / 472.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.2791, allocations: 235.9 kB / 473.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.2793, allocations: 27.91 kB / 473.1 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006469/0.2799, allocations: 55.95 kB / 473.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.2801, allocations: 64.52 kB / 473.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.497e-05/0.2801, allocations: 31.97 kB / 473.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004414/0.2806, allocations: 394.8 kB / 473.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2806, allocations: 0 / 473.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008482/0.2814, allocations: 343 kB / 474 MB, free: 4.254 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger,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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003837/0.2853, allocations: 2.436 MB / 476.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002427/0.2877, allocations: 1.196 MB / 477.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.2877, allocations: 5.438 kB / 477.6 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.2888, allocations: 0.6583 MB / 478.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007135/0.2895, allocations: 146.2 kB / 478.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.3001, allocations: 7.351 MB / 485.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.3007, allocations: 1.011 MB / 486.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005072/0.3012, allocations: 130.4 kB / 486.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005046/0.3017, allocations: 399.3 kB / 487.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3017, allocations: 4 kB / 487.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2021/0.5038, allocations: 20.48 MB / 0.4959 GB, free: 2.219 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.13, allocations: 19.2 kB / 0.4959 GB, free: 2.203 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_2016.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)