Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704",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.225/1.225, allocations: 5.393 MB / 20.89 MB, free: 1.426 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.01/0.01, allocations: 96.34 kB / 22.88 MB, free: 0.7695 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.001748/0.001748, allocations: 189.4 kB / 25 MB, free: 296 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.353/1.353, allocations: 222.9 MB / 249.9 MB, free: 8.512 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.2214/0.2214, allocations: 2.321 MB / 303.5 MB, free: 6.547 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.002863/0.002863, allocations: 99.84 kB / 367.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1969, allocations: 51.21 MB / 418.5 MB, free: 26.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.005931/0.2029, allocations: 6.761 MB / 425.2 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004363/0.2073, allocations: 3.131 MB / 428.4 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007753/0.2081, allocations: 20 kB / 428.4 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002213/0.2103, allocations: 1.096 MB / 429.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00189/0.2122, allocations: 0.8535 MB / 430.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.2137, allocations: 0.5284 MB / 430.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001164/0.2149, allocations: 1.371 MB / 432.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.216, allocations: 1.04 MB / 433.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004743/0.2165, allocations: 0.5567 MB / 433.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006101/0.2171, allocations: 0.7121 MB / 434.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.2173, allocations: 140 kB / 434.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006835/0.218, allocations: 439.7 kB / 435.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.2181, allocations: 298.9 kB / 435.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003795/0.2185, allocations: 0.6259 MB / 436 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.2198, allocations: 1.725 MB / 437.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2198, allocations: 3.938 kB / 437.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2198, allocations: 0 / 437.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.2198, allocations: 4 kB / 437.8 MB, free: 7.02 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.003585/0.2234, allocations: 1.763 MB / 439.5 MB, free: 5.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2235, allocations: 8.031 kB / 439.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.2236, allocations: 160.9 kB / 439.7 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002065/0.2257, allocations: 371.2 kB / 440.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.2271, allocations: 0.7598 MB / 440.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.099e-05/0.2272, allocations: 78.06 kB / 440.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.2273, allocations: 111.9 kB / 441 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.2291, allocations: 1.172 MB / 442.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.2291, allocations: 0 / 442.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-05/0.2292, allocations: 48 kB / 442.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.2293, allocations: 28 kB / 442.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001955/0.2312, allocations: 1.038 MB / 443.3 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006583/0.2378, allocations: 4.4 MB / 447.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00495/0.2428, allocations: 1.772 MB / 449.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.2441, allocations: 369.3 kB / 449.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002335/0.2444, allocations: 174.8 kB / 450 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001569/0.246, allocations: 0.5513 MB / 450.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.838e-06/0.246, allocations: 0 / 450.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.009693/0.2557, allocations: 1.702 MB / 452.2 MB, free: 7.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001729/0.2559, allocations: 285.6 kB / 452.5 MB, free: 7.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.2572, allocations: 0.5613 MB / 453.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.767e-05/0.2573, allocations: 41.64 kB / 453.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005204/0.2578, allocations: 494.6 kB / 453.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003412/0.2582, allocations: 256.4 kB / 453.9 MB, free: 6.113 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005139/0.2587, allocations: 206.7 kB / 454.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.2589, allocations: 386.8 kB / 454.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.2602, allocations: 322.4 kB / 454.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.2618, allocations: 0.5643 MB / 455.3 MB, free: 4.543 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.02843/0.2902, allocations: 3.642 MB / 459 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.775e-05/0.2903, allocations: 7.938 kB / 459 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004366/0.2946, allocations: 1.202 MB / 460.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-05/0.2948, allocations: 93.09 kB / 460.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.2948, allocations: 8 kB / 460.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006993/0.2955, allocations: 85.03 kB / 460.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/0.2974, allocations: 259.5 kB / 460.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.2997, allocations: 1.582 MB / 462.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.3012, allocations: 123 kB / 462.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.3014, allocations: 47.97 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.0008064/0.3022, allocations: 378.8 kB / 462.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003025/0.3025, allocations: 86.98 kB / 462.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.3069, allocations: 1.249 MB / 464.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.307, allocations: 8 kB / 464.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.307, allocations: 4 kB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.307, allocations: 3.984 kB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.3176, allocations: 2.555 MB / 466.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.3176, allocations: 8.031 kB / 466.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009961/0.3187, allocations: 127.8 kB / 466.8 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.32, allocations: 330.3 kB / 467.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.3201, allocations: 35.97 kB / 467.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.3222, allocations: 0.8858 MB / 468 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3222, allocations: 3.938 kB / 468 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009391/0.3316, allocations: 1.927 MB / 469.9 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005627/0.3322, allocations: 235.8 kB / 470.2 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.3325, allocations: 28 kB / 470.2 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.3336, allocations: 56.02 kB / 470.2 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.3338, allocations: 56.58 kB / 470.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.3339, allocations: 39.97 kB / 470.3 MB, free: 4.898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007766/0.3347, allocations: 386.8 kB / 470.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.025e-06/0.3347, allocations: 4 kB / 470.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001554/0.3363, allocations: 346.9 kB / 471.1 MB, free: 4.176 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.01054/0.3468, allocations: 2.714 MB / 473.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004293/0.3512, allocations: 1.197 MB / 475 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3512, allocations: 0 / 475 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001742/0.3529, allocations: 0.6669 MB / 475.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.3542, allocations: 140.7 kB / 475.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.3694, allocations: 7.364 MB / 483.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005144/0.3699, allocations: 1.014 MB / 484.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005141/0.3704, allocations: 126.4 kB / 484.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004898/0.3709, allocations: 407.2 kB / 484.7 MB, free: 6.141 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3709, allocations: 0 / 484.7 MB, free: 6.141 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2407/0.6117, allocations: 20.49 MB / 0.4933 GB, free: 1.848 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.16, allocations: 7.266 kB / 0.4933 GB, free: 1.844 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)