Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.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_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629",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.729/1.729, 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.009238/0.009238, allocations: 100.1 kB / 22.88 MB, free: 0.5781 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.001575/0.001575, allocations: 188.6 kB / 24.99 MB, free: 116 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.315/1.315, 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.2573/0.2573, allocations: 2.313 MB / 303.5 MB, free: 6.543 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.003023/0.003023, allocations: 92.14 kB / 367.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2599, allocations: 51.22 MB / 418.5 MB, free: 26.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.005713/0.2656, allocations: 6.764 MB / 425.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003813/0.2695, allocations: 3.131 MB / 428.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004472/0.27, allocations: 20 kB / 428.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001973/0.2719, allocations: 1.107 MB / 429.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001322/0.2733, allocations: 0.839 MB / 430.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.2745, allocations: 0.5291 MB / 430.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007999/0.2753, allocations: 1.371 MB / 432.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.2763, allocations: 1.04 MB / 433.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004115/0.2767, allocations: 0.5566 MB / 433.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006282/0.2773, allocations: 0.7121 MB / 434.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.2775, allocations: 140 kB / 434.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005993/0.2781, allocations: 439.7 kB / 435.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.2783, allocations: 298.9 kB / 435.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003771/0.2786, allocations: 0.6259 MB / 436 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.2798, allocations: 1.725 MB / 437.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.2798, allocations: 4 kB / 437.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2798, allocations: 0 / 437.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.2799, allocations: 0 / 437.8 MB, free: 7.004 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.003498/0.2834, allocations: 1.766 MB / 439.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.2834, allocations: 12.03 kB / 439.5 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001443/0.2836, allocations: 168.8 kB / 439.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/0.2856, allocations: 363.3 kB / 440.1 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.2869, allocations: 0.7598 MB / 440.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/0.287, allocations: 82 kB / 440.9 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.2871, allocations: 111.9 kB / 441 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.2888, allocations: 1.179 MB / 442.2 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.2888, allocations: 0 / 442.2 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.634e-05/0.2889, allocations: 44 kB / 442.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.289, allocations: 28 kB / 442.3 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001903/0.2909, allocations: 1.034 MB / 443.3 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005588/0.2965, allocations: 4.4 MB / 447.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002897/0.2994, allocations: 1.772 MB / 449.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007745/0.3002, allocations: 366.1 kB / 449.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001471/0.3003, allocations: 174.8 kB / 450 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009644/0.3013, allocations: 0.5553 MB / 450.5 MB, free: 9.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.134e-06/0.3013, allocations: 3.938 kB / 450.5 MB, free: 9.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006166/0.3075, allocations: 1.698 MB / 452.2 MB, free: 7.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.3076, allocations: 285.6 kB / 452.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006312/0.3082, allocations: 0.5614 MB / 453.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.145e-05/0.3083, allocations: 37.7 kB / 453.1 MB, free: 6.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002994/0.3086, allocations: 490.7 kB / 453.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.3088, allocations: 260.4 kB / 453.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003091/0.3091, allocations: 210.7 kB / 454.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3093, allocations: 382.8 kB / 454.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007541/0.31, allocations: 322.4 kB / 454.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009032/0.311, allocations: 0.5721 MB / 455.3 MB, free: 4.516 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.01795/0.3289, allocations: 3.634 MB / 459 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.3289, allocations: 7.938 kB / 459 MB, free: 0.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002596/0.3315, allocations: 1.205 MB / 460.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/0.3316, allocations: 89.11 kB / 460.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.3316, allocations: 12 kB / 460.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004613/0.3321, allocations: 89.03 kB / 460.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.3333, allocations: 259.5 kB / 460.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.3347, allocations: 1.574 MB / 462.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008637/0.3356, allocations: 115.1 kB / 462.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.7e-05/0.3357, allocations: 55.95 kB / 462.3 MB, free: 13.12 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.0006457/0.3363, allocations: 375.9 kB / 462.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.3366, allocations: 82.94 kB / 462.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002677/0.3392, allocations: 1.253 MB / 464.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3393, allocations: 8 kB / 464.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.3393, allocations: 0 / 464.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.3393, allocations: 11.92 kB / 464.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006591/0.3459, allocations: 2.555 MB / 466.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.3459, allocations: 4 kB / 466.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005815/0.3465, allocations: 131.8 kB / 466.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000786/0.3473, allocations: 334.3 kB / 467.1 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-05/0.3474, allocations: 31.97 kB / 467.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/0.3487, allocations: 0.8935 MB / 468 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3487, allocations: 4.062 kB / 468 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005807/0.3545, allocations: 1.919 MB / 469.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003185/0.3548, allocations: 243.8 kB / 470.2 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.355, allocations: 24 kB / 470.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006725/0.3557, allocations: 51.88 kB / 470.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3558, allocations: 56.58 kB / 470.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-05/0.3559, allocations: 39.97 kB / 470.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004533/0.3564, allocations: 390.8 kB / 470.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3564, allocations: 0 / 470.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009531/0.3573, 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.006592/0.3639, allocations: 2.725 MB / 473.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002556/0.3665, allocations: 1.2 MB / 475 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3665, allocations: 0 / 475 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.3675, allocations: 0.6598 MB / 475.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007492/0.3683, allocations: 150.1 kB / 475.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.3795, allocations: 7.351 MB / 483.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/0.38, allocations: 1.011 MB / 484.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005187/0.3805, allocations: 130.4 kB / 484.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004825/0.381, allocations: 399.3 kB / 484.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.381, allocations: 0 / 484.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.163/0.544, allocations: 20.5 MB / 0.4933 GB, free: 1.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.14, allocations: 7.938 kB / 0.4933 GB, free: 1.824 MB / 366.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Analytical_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)