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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.156/1.156, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009589/0.0009588, allocations: 101.6 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02419/0.02419, allocations: 5.396 MB / 345.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008034/0.008034, allocations: 2.313 MB / 399 MB, free: 68.83 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 79.88 kB / 465.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1836, allocations: 51.22 MB / 0.5049 GB, free: 40.81 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.006012/0.1897, allocations: 6.727 MB / 0.5115 GB, free: 34.05 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003398/0.1931, allocations: 3.119 MB / 0.5145 GB, free: 30.92 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004505/0.1936, allocations: 16 kB / 0.5146 GB, free: 30.9 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001806/0.1954, allocations: 1.037 MB / 0.5156 GB, free: 29.86 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.1967, allocations: 0.7582 MB / 0.5163 GB, free: 29.1 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.1979, allocations: 496.8 kB / 0.5168 GB, free: 28.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008238/0.1988, allocations: 1.293 MB / 0.518 GB, free: 27.33 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009467/0.1997, allocations: 0.8707 MB / 0.5189 GB, free: 26.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003818/0.2001, allocations: 0.5018 MB / 0.5194 GB, free: 25.93 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005228/0.2006, allocations: 0.6691 MB / 0.52 GB, free: 25.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.2008, allocations: 84 kB / 0.5201 GB, free: 25.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005627/0.2013, allocations: 367.7 kB / 0.5205 GB, free: 24.81 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.2015, allocations: 243 kB / 0.5207 GB, free: 24.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003519/0.2018, allocations: 0.5751 MB / 0.5213 GB, free: 24 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.2029, allocations: 1.678 MB / 0.5229 GB, free: 22.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2029, allocations: 0 / 0.5229 GB, free: 22.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.2029, allocations: 0 / 0.5229 GB, free: 22.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.2029, allocations: 0 / 0.5229 GB, free: 22.31 MB / 314.7 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.003346/0.2063, allocations: 1.771 MB / 0.5246 GB, free: 20.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.2063, allocations: 12.88 kB / 0.5246 GB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001829/0.2082, allocations: 371.3 kB / 0.525 GB, free: 20.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.2095, allocations: 0.756 MB / 0.5257 GB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.753e-05/0.2095, allocations: 90.06 kB / 0.5258 GB, free: 19.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.2097, allocations: 107.9 kB / 0.5259 GB, free: 19.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.2113, allocations: 1.179 MB / 0.5271 GB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.2113, allocations: 4 kB / 0.5271 GB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-05/0.2114, allocations: 44 kB / 0.5271 GB, free: 17.81 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.2114, allocations: 28 kB / 0.5272 GB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.2132, allocations: 1.034 MB / 0.5282 GB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004682/0.2179, allocations: 4.404 MB / 0.5325 GB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002301/0.2202, allocations: 1.767 MB / 0.5342 GB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00063/0.2208, allocations: 364.4 kB / 0.5345 GB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.221, allocations: 178.8 kB / 0.5347 GB, free: 9.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007908/0.2218, allocations: 0.5474 MB / 0.5352 GB, free: 9.008 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.605e-06/0.2218, allocations: 0 / 0.5352 GB, free: 9.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.005693/0.2275, allocations: 1.709 MB / 0.5369 GB, free: 7.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.2276, allocations: 281.7 kB / 0.5372 GB, free: 6.914 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005812/0.2282, allocations: 0.5536 MB / 0.5377 GB, free: 6.352 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.205e-05/0.2282, allocations: 41.7 kB / 0.5378 GB, free: 6.305 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/0.2285, allocations: 490.6 kB / 0.5382 GB, free: 5.816 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.2286, allocations: 256.5 kB / 0.5385 GB, free: 5.562 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002986/0.2289, allocations: 214.7 kB / 0.5387 GB, free: 5.344 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.301e-05/0.229, allocations: 382.8 kB / 0.539 GB, free: 4.961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007883/0.2298, allocations: 326.4 kB / 0.5394 GB, free: 4.645 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008637/0.2307, allocations: 0.5638 MB / 0.5399 GB, free: 3.984 MB / 314.7 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.01586/0.2466, allocations: 3.623 MB / 0.5434 GB, free: 196 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.2466, allocations: 4 kB / 0.5434 GB, free: 192 kB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002329/0.2489, allocations: 1.217 MB / 0.5446 GB, free: 14.94 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.193e-05/0.249, allocations: 93.09 kB / 0.5447 GB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.249, allocations: 8 kB / 0.5447 GB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004328/0.2494, allocations: 85.03 kB / 0.5448 GB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.2505, allocations: 259.5 kB / 0.5451 GB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.2518, allocations: 1.475 MB / 0.5465 GB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007732/0.2525, allocations: 119.1 kB / 0.5466 GB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.766e-05/0.2526, allocations: 51.97 kB / 0.5467 GB, free: 12.71 MB / 330.7 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.0004469/0.2531, allocations: 369.2 kB / 0.547 GB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.2532, allocations: 79.06 kB / 0.5471 GB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002417/0.2557, allocations: 1.249 MB / 0.5483 GB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.2557, allocations: 11.94 kB / 0.5483 GB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2557, allocations: 4 kB / 0.5483 GB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.2557, allocations: 3.984 kB / 0.5483 GB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.2591, allocations: 2.27 MB / 0.5505 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.2591, allocations: 7.938 kB / 0.5506 GB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005361/0.2597, allocations: 135.8 kB / 0.5507 GB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007138/0.2604, allocations: 326.3 kB / 0.551 GB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.83e-05/0.2605, allocations: 39.95 kB / 0.551 GB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/0.2617, allocations: 0.8935 MB / 0.5519 GB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2617, allocations: 0 / 0.5519 GB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01677/0.2785, allocations: 7.959 MB / 0.5597 GB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003027/0.2788, allocations: 235.9 kB / 0.5599 GB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.2789, allocations: 28 kB / 0.5599 GB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/0.2796, allocations: 55.89 kB / 0.56 GB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.2797, allocations: 64.52 kB / 0.56 GB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.63e-05/0.2798, allocations: 35.97 kB / 0.5601 GB, free: 14.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004167/0.2802, allocations: 390.8 kB / 0.5604 GB, free: 14.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2802, allocations: 0 / 0.5604 GB, free: 14.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001126/0.2813, allocations: 459 kB / 0.5609 GB, free: 13.7 MB / 346.7 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.0006295/0.282, allocations: 356.8 kB / 0.5612 GB, free: 13.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.284, allocations: 1.153 MB / 0.5624 GB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.284, allocations: 0 / 0.5624 GB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009857/0.285, allocations: 0.6597 MB / 0.563 GB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000755/0.2858, allocations: 146.1 kB / 0.5631 GB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.2895, allocations: 2.901 MB / 0.566 GB, free: 8.406 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/0.2901, allocations: 1.042 MB / 0.567 GB, free: 7.332 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006276/0.2907, allocations: 146.4 kB / 0.5671 GB, free: 7.184 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003123/0.291, allocations: 95.36 kB / 0.5672 GB, free: 7.09 MB / 346.7 MB Notification: Performance of SimCode: time 4.31e-07/0.291, allocations: 3.938 kB / 0.5672 GB, free: 7.086 MB / 346.7 MB Notification: Performance of Templates: time 0.0221/0.3131, allocations: 15.79 MB / 0.5826 GB, free: 7.367 MB / 362.7 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)