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.02606/0.02606, allocations: 5.389 MB / 20.62 MB, free: 2.004 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.0009024/0.0009024, allocations: 108.1 kB / 22.61 MB, free: 384 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.001016/0.001016, allocations: 195 kB / 24.7 MB, free: 0.668 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.215/1.215, allocations: 222.9 MB / 249.6 MB, free: 8.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008843/0.008843, allocations: 2.316 MB / 303.2 MB, free: 6.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 95.86 kB / 370.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1837, allocations: 51.2 MB / 421.3 MB, free: 26.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_2016): time 0.005411/0.1891, allocations: 6.748 MB / 428 MB, free: 19.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003676/0.1928, allocations: 3.08 MB / 431.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005127/0.1933, allocations: 19.94 kB / 431.1 MB, free: 16.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002113/0.1955, allocations: 1.023 MB / 432.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.1975, allocations: 0.7574 MB / 432.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.199, allocations: 485.9 kB / 433.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.2001, allocations: 1.375 MB / 434.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.2014, allocations: 1.095 MB / 435.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005705/0.202, allocations: 0.5643 MB / 436.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005647/0.2025, allocations: 0.7121 MB / 437.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001273/0.2027, allocations: 144 kB / 437.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006433/0.2033, allocations: 427.7 kB / 437.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.2035, allocations: 294.9 kB / 438 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003441/0.2038, allocations: 0.6337 MB / 438.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.205, allocations: 1.725 MB / 440.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.205, allocations: 0 / 440.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.205, allocations: 0 / 440.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.205, allocations: 0 / 440.3 MB, free: 7.145 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.003436/0.2085, allocations: 1.771 MB / 442.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.2085, allocations: 12.03 kB / 442.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001907/0.2104, allocations: 375.2 kB / 442.5 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.2117, allocations: 0.7561 MB / 443.2 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.504e-05/0.2118, allocations: 82.06 kB / 443.3 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.2119, allocations: 111.9 kB / 443.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.2136, allocations: 1.172 MB / 444.6 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.2136, allocations: 3.938 kB / 444.6 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.059e-05/0.2137, allocations: 44 kB / 444.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.2137, allocations: 24 kB / 444.7 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.2155, allocations: 1.042 MB / 445.7 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005113/0.2206, allocations: 4.407 MB / 450.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002639/0.2232, allocations: 1.772 MB / 451.9 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007084/0.224, allocations: 362.2 kB / 452.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.2241, allocations: 178.8 kB / 452.4 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008944/0.225, allocations: 0.5552 MB / 453 MB, free: 9.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 1.983e-06/0.225, allocations: 0 / 453 MB, free: 9.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005899/0.2309, allocations: 1.705 MB / 454.7 MB, free: 8.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.231, allocations: 277.7 kB / 454.9 MB, free: 7.746 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005699/0.2316, allocations: 0.5536 MB / 455.5 MB, free: 7.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/0.2317, allocations: 45.7 kB / 455.5 MB, free: 7.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/0.232, allocations: 494.6 kB / 456 MB, free: 6.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.2321, allocations: 256.4 kB / 456.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.2324, allocations: 206.7 kB / 456.5 MB, free: 6.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.2326, allocations: 382.8 kB / 456.9 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006947/0.2333, allocations: 326.4 kB / 457.2 MB, free: 5.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008228/0.2341, allocations: 0.5677 MB / 457.7 MB, free: 4.812 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.01818/0.2523, allocations: 3.634 MB / 461.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.2523, allocations: 0 / 461.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002417/0.2547, allocations: 1.205 MB / 462.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.252e-05/0.2548, allocations: 93.09 kB / 462.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.2549, allocations: 8.25 kB / 462.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004837/0.2554, allocations: 84.78 kB / 462.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.2565, allocations: 259.5 kB / 463 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/0.258, allocations: 1.585 MB / 464.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008889/0.2589, allocations: 119.1 kB / 464.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.767e-05/0.259, allocations: 51.97 kB / 464.8 MB, free: 13.42 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.0004954/0.2595, allocations: 374.7 kB / 465.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.2596, allocations: 79.06 kB / 465.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002458/0.2621, allocations: 1.265 MB / 466.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.2621, allocations: 8 kB / 466.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2621, allocations: 4 kB / 466.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2621, allocations: 7.922 kB / 466.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.2656, allocations: 2.267 MB / 468.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.2656, allocations: 4 kB / 468.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/0.2662, allocations: 131.8 kB / 468.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00076/0.2669, allocations: 338.2 kB / 469.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.758e-05/0.267, allocations: 31.97 kB / 469.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.2683, allocations: 0.8974 MB / 470.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.2683, allocations: 0 / 470.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002953/0.2712, allocations: 1.634 MB / 471.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003121/0.2716, allocations: 236 kB / 472 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.2717, allocations: 31.97 kB / 472 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006805/0.2724, allocations: 59.94 kB / 472.1 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.2725, allocations: 60.52 kB / 472.2 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.766e-05/0.2726, allocations: 35.97 kB / 472.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004436/0.273, allocations: 394.8 kB / 472.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2731, allocations: 4 kB / 472.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009591/0.274, allocations: 343 kB / 472.9 MB, free: 5.012 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.0006587/0.2747, allocations: 355.6 kB / 473.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002458/0.2772, allocations: 1.189 MB / 474.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2772, allocations: 0 / 474.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.2782, allocations: 0.6631 MB / 475.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007612/0.279, allocations: 138.2 kB / 475.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/0.282, allocations: 2.255 MB / 477.5 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.2825, allocations: 1.014 MB / 478.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005204/0.2831, allocations: 130.4 kB / 478.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.2833, allocations: 87.38 kB / 478.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of SimCode: time 1.843e-06/0.2833, allocations: 0 / 478.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Templates: time 0.01873/0.302, allocations: 12.74 MB / 491.5 MB, free: 2.438 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 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_2016.pipe 2>&1)