Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808",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.038/1.038, allocations: 5.393 MB / 20.89 MB, free: 1.727 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.001131/0.001131, allocations: 96.17 kB / 22.89 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 193.1 kB / 25 MB, free: 452 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.323/1.323, allocations: 222.9 MB / 249.9 MB, free: 8.516 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.2558/0.2558, allocations: 2.325 MB / 303.5 MB, free: 6.531 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 95.84 kB / 367.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1834, allocations: 51.21 MB / 418.5 MB, free: 26.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.005743/0.1892, allocations: 6.767 MB / 425.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00358/0.1928, allocations: 3.131 MB / 428.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003701/0.1932, allocations: 20 kB / 428.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.1951, allocations: 1.1 MB / 429.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001283/0.1964, allocations: 0.8467 MB / 430.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.1976, allocations: 0.5355 MB / 430.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000803/0.1985, allocations: 1.371 MB / 432.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.1995, allocations: 1.032 MB / 433.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003847/0.1999, allocations: 0.5527 MB / 433.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000587/0.2005, allocations: 0.7159 MB / 434.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001456/0.2006, allocations: 140 kB / 434.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005744/0.2012, allocations: 447.7 kB / 435.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.2014, allocations: 291 kB / 435.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003836/0.2018, allocations: 0.6337 MB / 436 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.2029, allocations: 1.717 MB / 437.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2029, allocations: 4 kB / 437.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2029, allocations: 0 / 437.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.2029, allocations: 0 / 437.8 MB, free: 7.012 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.003483/0.2064, allocations: 1.771 MB / 439.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2065, allocations: 8.031 kB / 439.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001485/0.2066, allocations: 160.9 kB / 439.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00196/0.2086, allocations: 371.2 kB / 440.1 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.21, allocations: 0.7482 MB / 440.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.268e-05/0.21, allocations: 89.98 kB / 440.9 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.2102, allocations: 111.9 kB / 441 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.2119, allocations: 1.176 MB / 442.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.2119, allocations: 0 / 442.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-05/0.212, allocations: 44 kB / 442.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.2121, allocations: 28 kB / 442.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.214, allocations: 1.034 MB / 443.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005683/0.2197, allocations: 4.404 MB / 447.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002952/0.2226, allocations: 1.776 MB / 449.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007655/0.2234, allocations: 369.2 kB / 449.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001577/0.2236, allocations: 178.8 kB / 450 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009658/0.2245, allocations: 0.5475 MB / 450.5 MB, free: 9.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.234e-06/0.2246, allocations: 0 / 450.5 MB, free: 9.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006053/0.2306, allocations: 1.705 MB / 452.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.2308, allocations: 281.7 kB / 452.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.2314, allocations: 0.5574 MB / 453.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/0.2315, allocations: 45.7 kB / 453.1 MB, free: 6.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/0.2318, allocations: 490.6 kB / 453.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.232, allocations: 256.4 kB / 453.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.2323, allocations: 214.7 kB / 454.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2324, allocations: 378.8 kB / 454.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007719/0.2332, allocations: 334.4 kB / 454.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009042/0.2341, allocations: 0.5605 MB / 455.3 MB, free: 4.52 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.01757/0.2517, allocations: 3.631 MB / 459 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.2517, allocations: 7.938 kB / 459 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002592/0.2543, allocations: 1.201 MB / 460.2 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.892e-05/0.2544, allocations: 97.09 kB / 460.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.2544, allocations: 8.25 kB / 460.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004697/0.2549, allocations: 88.72 kB / 460.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.256, allocations: 255.6 kB / 460.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.2575, allocations: 1.578 MB / 462.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008967/0.2585, allocations: 111.1 kB / 462.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.083e-05/0.2586, allocations: 55.95 kB / 462.3 MB, free: 13.14 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.0005118/0.2591, allocations: 375.9 kB / 462.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.2593, allocations: 79 kB / 462.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.2619, allocations: 1.257 MB / 464 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.2619, allocations: 8 kB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2619, allocations: 0 / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.262, allocations: 7.984 kB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006631/0.2686, allocations: 2.563 MB / 466.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.2686, allocations: 7.938 kB / 466.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005798/0.2692, allocations: 127.9 kB / 466.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007903/0.27, allocations: 334.2 kB / 467.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.501e-05/0.2701, allocations: 31.97 kB / 467.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.2714, allocations: 0.8974 MB / 468 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2714, allocations: 3.938 kB / 468 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005835/0.2772, allocations: 1.919 MB / 469.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00034/0.2776, allocations: 235.8 kB / 470.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.2778, allocations: 24 kB / 470.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006863/0.2785, allocations: 59.86 kB / 470.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.2786, allocations: 60.56 kB / 470.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.964e-05/0.2787, allocations: 35.97 kB / 470.3 MB, free: 4.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004678/0.2792, allocations: 394.8 kB / 470.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2792, allocations: 0 / 470.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000995/0.2802, allocations: 339 kB / 471.1 MB, free: 4.164 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 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * 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.006656/0.2868, allocations: 2.714 MB / 473.8 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.2895, allocations: 1.197 MB / 475 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2895, allocations: 0 / 475 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.2906, allocations: 0.6585 MB / 475.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007827/0.2914, allocations: 150.1 kB / 475.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.3031, allocations: 7.354 MB / 483.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.3037, allocations: 1.011 MB / 484.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005421/0.3042, allocations: 134.4 kB / 484.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.3048, allocations: 403.2 kB / 484.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3048, allocations: 3.938 kB / 484.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2602/0.565, allocations: 20.49 MB / 0.4933 GB, free: 1.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.24, allocations: 7.938 kB / 0.4933 GB, free: 1.828 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)