Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016,tolerance=1e-06,outputFormat="empty",numberOfIntervals=70080,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.04086/0.04086, allocations: 5.404 MB / 21.66 MB, free: 1.203 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.001438/0.001438, allocations: 106.9 kB / 23.65 MB, free: 0.7969 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.001854/0.001854, allocations: 200 kB / 25.78 MB, free: 4.531 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.365/1.365, allocations: 222.9 MB / 250.7 MB, free: 8.477 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009564/0.009564, allocations: 2.31 MB / 304.3 MB, free: 6.512 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00246/0.00246, allocations: 95.84 kB / 372.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2159, allocations: 51.21 MB / 423.3 MB, free: 25.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.005768/0.2216, allocations: 6.758 MB / 430.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004189/0.2259, allocations: 3.138 MB / 433.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004962/0.2264, allocations: 20 kB / 433.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002053/0.2284, allocations: 1.099 MB / 434.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.2298, allocations: 0.8351 MB / 435.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.2311, allocations: 0.5415 MB / 435.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009582/0.2321, allocations: 1.39 MB / 437.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.2331, allocations: 1.024 MB / 438.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.2336, allocations: 0.5644 MB / 438.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006095/0.2342, allocations: 0.7082 MB / 439.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.2344, allocations: 144 kB / 439.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005732/0.2349, allocations: 435.7 kB / 440 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.2351, allocations: 295 kB / 440.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003764/0.2355, allocations: 0.6298 MB / 440.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.2367, allocations: 1.745 MB / 442.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2367, allocations: 0 / 442.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2367, allocations: 4 kB / 442.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.2367, allocations: 0 / 442.7 MB, free: 6.414 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.003508/0.2402, allocations: 1.767 MB / 444.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2403, allocations: 8.031 kB / 444.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001926/0.2422, allocations: 375.2 kB / 444.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.2437, allocations: 0.7639 MB / 445.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.2437, allocations: 90.05 kB / 445.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.2439, allocations: 103.9 kB / 445.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.2455, allocations: 1.179 MB / 446.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.2455, allocations: 8 kB / 446.9 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.579e-05/0.2456, allocations: 40 kB / 447 MB, free: 1.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.2456, allocations: 28 kB / 447 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.2474, allocations: 1.03 MB / 448 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005905/0.2534, allocations: 4.368 MB / 452.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.2562, allocations: 1.772 MB / 454.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007321/0.257, allocations: 366 kB / 454.5 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001576/0.2571, allocations: 178.8 kB / 454.7 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009765/0.2581, allocations: 0.5513 MB / 455.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.375e-06/0.2581, allocations: 0 / 455.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005912/0.2641, allocations: 1.705 MB / 457 MB, free: 7.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.2642, allocations: 277.7 kB / 457.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006608/0.2649, allocations: 0.5536 MB / 457.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.049e-05/0.2649, allocations: 45.7 kB / 457.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003512/0.2653, allocations: 490.7 kB / 458.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.2655, allocations: 260.4 kB / 458.6 MB, free: 5.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/0.2658, allocations: 214.6 kB / 458.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.266, allocations: 378.8 kB / 459.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007153/0.2667, allocations: 334.4 kB / 459.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009051/0.2676, allocations: 0.5682 MB / 460 MB, free: 4.113 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.01733/0.285, allocations: 3.627 MB / 463.7 MB, free: 328 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.285, allocations: 0 / 463.7 MB, free: 328 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002555/0.2875, allocations: 1.213 MB / 464.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.202e-05/0.2876, allocations: 89.34 kB / 465 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.2876, allocations: 12 kB / 465 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004412/0.2881, allocations: 84.78 kB / 465.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.2892, allocations: 259.5 kB / 465.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.2907, allocations: 1.578 MB / 466.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009129/0.2916, allocations: 111 kB / 467 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.764e-05/0.2917, allocations: 60.05 kB / 467.1 MB, free: 12.73 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.0005908/0.2923, allocations: 363.9 kB / 467.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.2925, allocations: 79.06 kB / 467.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002549/0.295, allocations: 1.249 MB / 468.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.2951, allocations: 12 kB / 468.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.2951, allocations: 0 / 468.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.2951, allocations: 3.984 kB / 468.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003823/0.2989, allocations: 2.274 MB / 471 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.2989, allocations: 0 / 471 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005794/0.2995, allocations: 143.8 kB / 471.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000789/0.3003, allocations: 326.2 kB / 471.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.854e-05/0.3004, allocations: 31.97 kB / 471.5 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.3017, allocations: 0.8935 MB / 472.4 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3017, allocations: 4.031 kB / 472.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002967/0.3047, allocations: 1.64 MB / 474.1 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003738/0.3051, allocations: 231.9 kB / 474.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.3052, allocations: 28 kB / 474.3 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006446/0.3059, allocations: 63.8 kB / 474.4 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.306, allocations: 60.52 kB / 474.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-05/0.3061, allocations: 39.95 kB / 474.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004747/0.3066, allocations: 394.8 kB / 474.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3066, allocations: 0 / 474.9 MB, free: 4.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001042/0.3076, 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.0007045/0.3083, allocations: 351.7 kB / 475.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.3105, 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.745e-06/0.3105, allocations: 384 / 476.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.3116, allocations: 0.6621 MB / 477.4 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.0007158/0.3123, allocations: 146.2 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.003076/0.3154, allocations: 1.781 MB / 479.3 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000555/0.3159, allocations: 1.011 MB / 480.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004304/0.3164, 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.0002366/0.3166, allocations: 87.39 kB / 480.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3166, allocations: 0 / 480.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of Templates: time 0.02741/0.344, allocations: 12.73 MB / 493.2 MB, free: 2.281 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016 -jacobian=coloredNumerical -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)