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.0272/0.0272, allocations: 5.391 MB / 20.62 MB, free: 2.023 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.001/0.0009999, allocations: 100.1 kB / 22.61 MB, free: 408 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 194.9 kB / 24.7 MB, free: 0.6719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 222.9 MB / 249.6 MB, free: 8.656 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008835/0.008835, allocations: 2.32 MB / 303.2 MB, free: 6.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 99.86 kB / 370.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1983, allocations: 51.21 MB / 421.3 MB, free: 26.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.005699/0.2041, allocations: 6.733 MB / 428 MB, free: 19.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004104/0.2082, allocations: 3.076 MB / 431.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000709/0.2089, allocations: 20 kB / 431.1 MB, free: 16.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002109/0.2111, allocations: 1.042 MB / 432.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.2126, allocations: 0.7543 MB / 432.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.214, allocations: 492.1 kB / 433.4 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001165/0.2151, allocations: 1.371 MB / 434.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0013/0.2164, allocations: 1.095 MB / 435.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005199/0.217, allocations: 0.5682 MB / 436.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005517/0.2175, allocations: 0.716 MB / 437.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.2177, allocations: 140 kB / 437.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006116/0.2183, allocations: 435.7 kB / 437.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.2184, allocations: 291 kB / 438 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003438/0.2188, allocations: 0.6337 MB / 438.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.22, allocations: 1.721 MB / 440.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.22, allocations: 0 / 440.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.22, allocations: 0 / 440.3 MB, free: 7.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.22, allocations: 0 / 440.3 MB, free: 7.012 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.003527/0.2236, allocations: 1.771 MB / 442.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2236, allocations: 12.03 kB / 442.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.2255, allocations: 371.2 kB / 442.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.2269, allocations: 0.7561 MB / 443.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.227, allocations: 82.06 kB / 443.3 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.2271, allocations: 107.9 kB / 443.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.2288, allocations: 1.183 MB / 444.6 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.2288, allocations: 0 / 444.6 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-05/0.2289, allocations: 48 kB / 444.6 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.2289, allocations: 24 kB / 444.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.2307, allocations: 1.038 MB / 445.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005705/0.2364, allocations: 4.404 MB / 450.1 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/0.2392, allocations: 1.768 MB / 451.9 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007436/0.24, allocations: 370.4 kB / 452.2 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001681/0.2402, allocations: 178.7 kB / 452.4 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00096/0.2411, allocations: 0.5513 MB / 453 MB, free: 9.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.144e-06/0.2411, allocations: 0 / 453 MB, free: 9.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005951/0.2471, allocations: 1.705 MB / 454.7 MB, free: 7.949 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.2473, allocations: 277.7 kB / 454.9 MB, free: 7.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006843/0.2479, allocations: 0.5575 MB / 455.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/0.248, allocations: 41.7 kB / 455.5 MB, free: 7.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.2484, allocations: 490.7 kB / 456 MB, free: 6.516 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.2486, allocations: 252.4 kB / 456.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.2489, allocations: 214.7 kB / 456.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.2491, allocations: 378.8 kB / 456.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007139/0.2498, allocations: 330.4 kB / 457.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009074/0.2508, allocations: 0.5755 MB / 457.7 MB, free: 4.676 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.01848/0.2692, allocations: 3.631 MB / 461.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.2693, allocations: 0 / 461.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0025/0.2718, allocations: 1.209 MB / 462.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.076e-05/0.2719, allocations: 97.12 kB / 462.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.2719, allocations: 8 kB / 462.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004669/0.2724, allocations: 84.78 kB / 462.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.2735, allocations: 255.5 kB / 463 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/0.275, allocations: 1.574 MB / 464.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008756/0.2759, allocations: 115 kB / 464.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-05/0.276, allocations: 59.95 kB / 464.8 MB, free: 13.29 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.0005351/0.2765, allocations: 375.9 kB / 465.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.2767, allocations: 79.06 kB / 465.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002467/0.2791, allocations: 1.253 MB / 466.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.2792, allocations: 8 kB / 466.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2792, allocations: 4 kB / 466.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.2792, allocations: 7.984 kB / 466.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.2827, allocations: 2.267 MB / 468.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2828, allocations: 8 kB / 468.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005561/0.2833, allocations: 135.7 kB / 468.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000745/0.2841, allocations: 338.2 kB / 469.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.176e-05/0.2842, allocations: 31.97 kB / 469.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.2854, allocations: 0.8974 MB / 470.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2854, allocations: 0 / 470.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00294/0.2884, allocations: 1.634 MB / 471.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.2887, allocations: 239.9 kB / 472 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.2888, allocations: 24 kB / 472 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006591/0.2895, allocations: 55.86 kB / 472.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.2896, allocations: 60.52 kB / 472.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.465e-05/0.2897, allocations: 35.97 kB / 472.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004373/0.2902, allocations: 398.8 kB / 472.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2902, allocations: 0 / 472.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009482/0.2911, allocations: 343 kB / 472.9 MB, free: 4.891 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.0006735/0.2918, allocations: 353 kB / 473.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.2945, allocations: 1.192 MB / 474.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2945, allocations: 0 / 474.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.2955, allocations: 0.6597 MB / 475.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008357/0.2964, allocations: 148.8 kB / 475.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.2998, allocations: 2.263 MB / 477.5 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006204/0.3005, allocations: 1.011 MB / 478.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006023/0.3011, allocations: 130.3 kB / 478.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.3014, allocations: 87.38 kB / 478.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3014, allocations: 0 / 478.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of Templates: time 0.02227/0.3236, allocations: 12.73 MB / 491.5 MB, free: 2.312 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 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.pipe 2>&1)