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: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02308/0.02308, allocations: 5.4 MB / 21.65 MB, free: 1.07 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.001268/0.001267, allocations: 105.3 kB / 23.65 MB, free: 0.7109 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.001169/0.001169, allocations: 200.9 kB / 25.77 MB, free: 4.527 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 222.9 MB / 250.6 MB, free: 8.461 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008911/0.008911, allocations: 2.315 MB / 304.3 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 95.83 kB / 368.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1995, allocations: 51.21 MB / 419.8 MB, free: 26.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.005691/0.2053, allocations: 6.767 MB / 426.6 MB, free: 19.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003808/0.2091, allocations: 3.135 MB / 429.7 MB, free: 16.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004511/0.2096, allocations: 23.94 kB / 429.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.2115, allocations: 1.092 MB / 430.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.2128, allocations: 0.8418 MB / 431.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.214, allocations: 0.5444 MB / 432.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008891/0.2149, allocations: 1.379 MB / 433.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009693/0.2159, allocations: 1.028 MB / 434.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003955/0.2163, allocations: 0.5605 MB / 435.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005509/0.2169, allocations: 0.7082 MB / 435.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.217, allocations: 147.9 kB / 436 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005313/0.2175, allocations: 439.7 kB / 436.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.2177, allocations: 291 kB / 436.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003558/0.2181, allocations: 0.6337 MB / 437.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.2192, allocations: 1.741 MB / 439.1 MB, free: 6.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2192, allocations: 4 kB / 439.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2192, allocations: 0 / 439.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2192, allocations: 0 / 439.1 MB, free: 6.863 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.003247/0.2225, allocations: 1.77 MB / 440.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.2225, allocations: 12.03 kB / 440.9 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001833/0.2243, allocations: 371.2 kB / 441.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.2256, allocations: 0.7639 MB / 442 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.652e-05/0.2257, allocations: 86.06 kB / 442.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.2258, allocations: 107.9 kB / 442.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.2274, allocations: 1.176 MB / 443.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.2275, allocations: 4 kB / 443.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.549e-05/0.2276, allocations: 48 kB / 443.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.2276, allocations: 24 kB / 443.5 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.2293, allocations: 1.034 MB / 444.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005234/0.2345, allocations: 4.365 MB / 448.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.2371, allocations: 1.78 MB / 450.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006967/0.2379, allocations: 365.3 kB / 451 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001447/0.238, allocations: 174.8 kB / 451.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008723/0.2389, allocations: 0.5514 MB / 451.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.013e-06/0.2389, allocations: 0 / 451.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.0057/0.2446, allocations: 1.705 MB / 453.4 MB, free: 7.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.2447, allocations: 281.6 kB / 453.7 MB, free: 7.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006137/0.2454, allocations: 0.5575 MB / 454.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.2454, allocations: 45.7 kB / 454.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.2457, allocations: 486.7 kB / 454.8 MB, free: 6.402 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.2459, allocations: 252.4 kB / 455 MB, free: 6.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002877/0.2462, allocations: 214.7 kB / 455.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2464, allocations: 382.8 kB / 455.6 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006878/0.2471, allocations: 326.4 kB / 455.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008115/0.2479, allocations: 0.5682 MB / 456.5 MB, free: 4.57 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.01649/0.2644, allocations: 3.623 MB / 460.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.2644, allocations: 7.938 kB / 460.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002369/0.2668, allocations: 1.206 MB / 461.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.21e-05/0.2669, allocations: 101.1 kB / 461.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.2669, allocations: 4 kB / 461.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004333/0.2673, allocations: 84.78 kB / 461.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.2684, allocations: 251.6 kB / 461.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001413/0.2698, allocations: 1.589 MB / 463.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/0.2706, allocations: 111.1 kB / 463.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.061e-05/0.2707, allocations: 59.95 kB / 463.5 MB, free: 13.18 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.0004998/0.2712, allocations: 363.7 kB / 463.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.2714, allocations: 79.06 kB / 464 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/0.2737, allocations: 1.253 MB / 465.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.2737, allocations: 11.98 kB / 465.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2737, allocations: 0 / 465.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.2737, allocations: 3.984 kB / 465.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005894/0.2796, allocations: 2.555 MB / 467.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.2797, allocations: 0 / 467.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/0.2802, allocations: 139.8 kB / 467.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007502/0.281, allocations: 326.2 kB / 468.2 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.202e-05/0.2811, allocations: 31.97 kB / 468.3 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.2823, allocations: 0.8935 MB / 469.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.2823, allocations: 0 / 469.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005387/0.2877, allocations: 1.932 MB / 471.1 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/0.2882, allocations: 235.8 kB / 471.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.2883, allocations: 24 kB / 471.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/0.2889, allocations: 51.97 kB / 471.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.2891, allocations: 52.58 kB / 471.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.541e-05/0.2891, allocations: 43.97 kB / 471.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004404/0.2896, allocations: 394.8 kB / 471.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2896, allocations: 0 / 471.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009528/0.2905, allocations: 347 kB / 472.2 MB, free: 4.234 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.0006494/0.2912, allocations: 363.5 kB / 472.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.2933, allocations: 1.157 MB / 473.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.2933, allocations: 3.938 kB / 473.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009826/0.2943, allocations: 0.6597 MB / 474.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007214/0.295, allocations: 142.1 kB / 474.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.2979, allocations: 1.778 MB / 476.3 MB, free: 84 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.2984, allocations: 1.014 MB / 477.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004308/0.2988, allocations: 122.4 kB / 477.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.2991, allocations: 95.38 kB / 477.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2991, allocations: 0 / 477.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Templates: time 0.01934/0.3184, allocations: 12.75 MB / 490.3 MB, free: 2.156 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (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 & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)