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.02365/0.02365, allocations: 5.403 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.001016/0.001016, allocations: 107.4 kB / 23.65 MB, free: 0.8047 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.001071/0.001071, allocations: 195.6 kB / 25.78 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.23/1.23, allocations: 222.9 MB / 250.7 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.009184/0.009184, allocations: 2.304 MB / 304.3 MB, free: 6.512 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 99.84 kB / 372.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1883, allocations: 51.22 MB / 423.3 MB, free: 25.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.005808/0.1941, allocations: 6.765 MB / 430.1 MB, free: 19.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00396/0.1981, allocations: 3.131 MB / 433.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007002/0.1988, allocations: 16 kB / 433.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002136/0.201, allocations: 1.104 MB / 434.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.2025, allocations: 0.8389 MB / 435.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001304/0.2039, allocations: 0.5341 MB / 435.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.205, allocations: 1.387 MB / 437.1 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001092/0.2061, allocations: 1.028 MB / 438.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005239/0.2066, allocations: 0.5527 MB / 438.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000686/0.2073, allocations: 0.716 MB / 439.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.2074, allocations: 140 kB / 439.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005854/0.208, allocations: 439.7 kB / 440 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.2082, allocations: 298.9 kB / 440.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003643/0.2086, allocations: 0.6337 MB / 440.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00112/0.2097, allocations: 1.737 MB / 442.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2097, allocations: 0 / 442.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.2097, allocations: 0 / 442.6 MB, free: 6.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.2097, allocations: 0 / 442.6 MB, free: 6.434 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.00328/0.213, allocations: 1.779 MB / 444.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.213, allocations: 8.031 kB / 444.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001878/0.2149, allocations: 367.2 kB / 444.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.2163, allocations: 0.7717 MB / 445.6 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.2164, allocations: 78.06 kB / 445.6 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.2165, allocations: 107.9 kB / 445.7 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.2181, allocations: 1.176 MB / 446.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.2181, allocations: 0 / 446.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.411e-05/0.2182, allocations: 47.94 kB / 447 MB, free: 1.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.2182, allocations: 28 kB / 447 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.22, allocations: 1.038 MB / 448 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005439/0.2254, allocations: 4.372 MB / 452.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.2282, allocations: 1.776 MB / 454.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.2289, allocations: 366 kB / 454.5 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001481/0.229, allocations: 170.8 kB / 454.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008956/0.2299, allocations: 0.5591 MB / 455.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.054e-06/0.23, allocations: 0 / 455.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005803/0.2358, allocations: 1.702 MB / 457 MB, free: 7.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.2359, allocations: 281.7 kB / 457.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006433/0.2366, allocations: 0.5575 MB / 457.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.383e-05/0.2366, allocations: 37.7 kB / 457.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.2369, allocations: 490.7 kB / 458.3 MB, free: 5.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.2371, allocations: 256.4 kB / 458.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/0.2374, allocations: 210.7 kB / 458.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.2376, allocations: 386.8 kB / 459.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007045/0.2383, allocations: 322.4 kB / 459.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008404/0.2391, allocations: 0.5643 MB / 460 MB, free: 4.137 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.01684/0.256, allocations: 3.634 MB / 463.7 MB, free: 344 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.908e-06/0.256, allocations: 4 kB / 463.7 MB, free: 340 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002501/0.2585, allocations: 1.209 MB / 464.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.005e-05/0.2586, allocations: 89.09 kB / 465 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.2586, allocations: 8 kB / 465 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004417/0.2591, allocations: 89.03 kB / 465.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.2602, allocations: 255.5 kB / 465.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.2617, allocations: 1.581 MB / 466.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008543/0.2625, allocations: 115.2 kB / 467 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.727e-05/0.2626, allocations: 51.95 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.000493/0.2631, allocations: 371.8 kB / 467.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001706/0.2633, allocations: 83.06 kB / 467.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/0.2658, allocations: 1.253 MB / 468.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.2658, allocations: 8 kB / 468.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2658, allocations: 3.984 kB / 468.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.2659, allocations: 7.984 kB / 468.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003728/0.2696, allocations: 2.262 MB / 471 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.2696, allocations: 0 / 471 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000578/0.2702, allocations: 135.8 kB / 471.2 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007543/0.271, allocations: 334.2 kB / 471.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-05/0.271, allocations: 31.97 kB / 471.5 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.2723, allocations: 0.8974 MB / 472.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.2723, allocations: 0 / 472.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.2752, allocations: 1.64 MB / 474.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003401/0.2756, allocations: 231.9 kB / 474.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.2757, allocations: 32 kB / 474.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006564/0.2764, allocations: 55.86 kB / 474.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.2765, allocations: 60.52 kB / 474.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.968e-05/0.2766, allocations: 44.12 kB / 474.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004422/0.2771, allocations: 394.8 kB / 474.9 MB, free: 4.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2771, allocations: 0 / 474.9 MB, free: 4.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008679/0.2779, allocations: 343 kB / 475.2 MB, free: 4.352 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.0006552/0.2786, allocations: 357.9 kB / 475.5 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.2807, allocations: 1.161 MB / 476.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2807, allocations: 0 / 476.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.2817, allocations: 0.6673 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.0006967/0.2824, allocations: 138.2 kB / 477.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.2853, allocations: 1.773 MB / 479.3 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005687/0.2859, allocations: 1.014 MB / 480.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004213/0.2864, allocations: 126.4 kB / 480.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/0.2866, allocations: 87.38 kB / 480.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2866, allocations: 0 / 480.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of Templates: time 0.02034/0.307, allocations: 12.74 MB / 493.2 MB, free: 2.285 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 gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)