Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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: translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02379/0.02379, allocations: 5.395 MB / 21.65 MB, free: 1.492 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.0009693/0.0009694, allocations: 101.8 kB / 23.64 MB, free: 0.8672 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.001153/0.001153, allocations: 201.8 kB / 25.77 MB, free: 4.766 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.214/1.214, allocations: 222.9 MB / 250.6 MB, free: 8.465 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009491/0.009491, allocations: 2.309 MB / 304.3 MB, free: 6.504 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 99.84 kB / 372.1 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1969/0.1987, allocations: 51.2 MB / 423.3 MB, free: 25.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005479/0.2042, allocations: 6.758 MB / 430.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003731/0.2079, allocations: 3.135 MB / 433.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005152/0.2085, allocations: 19.94 kB / 433.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001945/0.2104, allocations: 1.099 MB / 434.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001364/0.2118, allocations: 0.839 MB / 435.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.213, allocations: 0.5481 MB / 435.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009414/0.214, allocations: 1.383 MB / 437.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009911/0.215, allocations: 1.02 MB / 438.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.2154, allocations: 0.5605 MB / 438.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005632/0.216, allocations: 0.7121 MB / 439.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.2161, allocations: 144 kB / 439.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005687/0.2167, allocations: 435.7 kB / 440 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.2168, allocations: 295 kB / 440.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003609/0.2172, allocations: 0.6337 MB / 440.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.2183, allocations: 1.741 MB / 442.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2184, allocations: 0 / 442.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2184, allocations: 4 kB / 442.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.374e-05/0.2184, allocations: 0 / 442.6 MB, free: 6.422 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.003311/0.2217, allocations: 1.771 MB / 444.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.2217, allocations: 8.031 kB / 444.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001865/0.2236, allocations: 371.2 kB / 444.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.225, allocations: 0.7639 MB / 445.5 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/0.225, allocations: 86.06 kB / 445.6 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.2252, allocations: 107.9 kB / 445.7 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.2268, allocations: 1.187 MB / 446.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.2268, allocations: 0 / 446.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-05/0.2269, allocations: 44 kB / 447 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.2269, allocations: 28 kB / 447 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.2287, allocations: 1.034 MB / 448 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005578/0.2343, allocations: 4.368 MB / 452.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002654/0.237, allocations: 1.764 MB / 454.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007363/0.2377, allocations: 374.3 kB / 454.5 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001686/0.2379, allocations: 182.8 kB / 454.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008904/0.2388, allocations: 0.5475 MB / 455.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.084e-06/0.2388, allocations: 0 / 455.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005724/0.2445, allocations: 1.705 MB / 457 MB, free: 7.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.2447, allocations: 277.7 kB / 457.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006794/0.2454, allocations: 0.5536 MB / 457.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.509e-05/0.2454, allocations: 45.7 kB / 457.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003366/0.2458, allocations: 490.7 kB / 458.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.246, allocations: 256.4 kB / 458.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002974/0.2463, allocations: 210.7 kB / 458.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.2464, allocations: 378.8 kB / 459.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007445/0.2472, allocations: 326.4 kB / 459.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008472/0.248, allocations: 0.5682 MB / 460 MB, free: 4.129 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.01633/0.2644, allocations: 3.638 MB / 463.7 MB, free: 332 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.2644, allocations: 4 kB / 463.7 MB, free: 328 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002442/0.2669, allocations: 1.209 MB / 464.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.676e-05/0.2669, allocations: 89.34 kB / 465 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.267, allocations: 12 kB / 465 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000425/0.2674, allocations: 84.78 kB / 465 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.2684, allocations: 259.5 kB / 465.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.2699, allocations: 1.574 MB / 466.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008238/0.2707, allocations: 111 kB / 467 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.164e-05/0.2708, allocations: 52.05 kB / 467 MB, free: 12.75 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.0004915/0.2713, allocations: 379.9 kB / 467.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.2714, allocations: 79.06 kB / 467.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002416/0.2739, allocations: 1.253 MB / 468.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.2739, allocations: 8 kB / 468.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.2739, allocations: 0 / 468.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.2739, allocations: 7.984 kB / 468.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003535/0.2774, allocations: 2.258 MB / 471 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2775, allocations: 0 / 471 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005472/0.278, allocations: 139.8 kB / 471.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007346/0.2788, allocations: 334.1 kB / 471.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/0.2788, allocations: 39.84 kB / 471.5 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.28, allocations: 0.8974 MB / 472.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.28, allocations: 0 / 472.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002876/0.2829, allocations: 1.64 MB / 474 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003129/0.2832, allocations: 231.9 kB / 474.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.2834, allocations: 28 kB / 474.3 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006185/0.284, allocations: 59.86 kB / 474.4 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.2841, allocations: 64.5 kB / 474.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.558e-05/0.2842, allocations: 39.97 kB / 474.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004269/0.2846, allocations: 394.8 kB / 474.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2847, allocations: 0 / 474.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009158/0.2856, allocations: 343 kB / 475.2 MB, free: 4.34 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.0006251/0.2862, allocations: 350.9 kB / 475.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.2882, allocations: 1.158 MB / 476.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2882, allocations: 0 / 476.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009927/0.2892, allocations: 0.6624 MB / 477.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000694/0.2899, allocations: 148.6 kB / 477.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.2928, allocations: 1.769 MB / 479.3 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005286/0.2933, allocations: 1.018 MB / 480.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004102/0.2937, allocations: 126.4 kB / 480.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.294, allocations: 87.33 kB / 480.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.294, allocations: 0 / 480.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of Templates: time 0.01963/0.3136, allocations: 12.74 MB / 493.2 MB, free: 2.273 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)