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.0253/0.0253, allocations: 5.39 MB / 21.56 MB, free: 1.195 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.001035/0.001036, allocations: 108 kB / 23.55 MB, free: 0.8711 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.001154/0.001154, allocations: 202.8 kB / 25.68 MB, free: 4.781 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.35/1.35, allocations: 222.9 MB / 250.5 MB, free: 8.539 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009471/0.009472, allocations: 2.315 MB / 304.2 MB, free: 6.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 99.83 kB / 371.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1999, allocations: 51.21 MB / 422.5 MB, free: 25.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.00644/0.2064, allocations: 6.763 MB / 429.3 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004347/0.2108, allocations: 3.127 MB / 432.4 MB, free: 16.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006775/0.2115, allocations: 16 kB / 432.5 MB, free: 16.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.2137, allocations: 1.103 MB / 433.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001611/0.2154, allocations: 0.8429 MB / 434.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.2168, allocations: 0.539 MB / 434.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.2179, allocations: 1.371 MB / 436.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001123/0.219, allocations: 1.036 MB / 437.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004575/0.2195, allocations: 0.5566 MB / 437.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006369/0.2201, allocations: 0.7121 MB / 438.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.2203, allocations: 140 kB / 438.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007291/0.221, allocations: 439.7 kB / 439.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.2212, allocations: 295 kB / 439.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004003/0.2216, allocations: 0.6337 MB / 440.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.223, allocations: 1.713 MB / 441.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.223, allocations: 7.938 kB / 441.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.223, allocations: 4 kB / 441.8 MB, free: 6.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.223, allocations: 0 / 441.8 MB, free: 6.594 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.00379/0.2268, allocations: 1.767 MB / 443.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2269, allocations: 8.031 kB / 443.6 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002049/0.2289, allocations: 375.2 kB / 444 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.2304, allocations: 0.7561 MB / 444.7 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.244e-05/0.2304, allocations: 82.06 kB / 444.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.2306, allocations: 107.9 kB / 444.9 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.2324, allocations: 1.176 MB / 446.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.2324, allocations: 7.938 kB / 446.1 MB, free: 2.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-05/0.2325, allocations: 44 kB / 446.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.2326, allocations: 24 kB / 446.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002092/0.2347, allocations: 1.038 MB / 447.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006358/0.241, allocations: 4.404 MB / 451.6 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003105/0.2442, allocations: 1.764 MB / 453.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000818/0.245, allocations: 374 kB / 453.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002107/0.2452, allocations: 178.8 kB / 453.9 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.2463, allocations: 0.5436 MB / 454.4 MB, free: 9.305 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.825e-06/0.2463, allocations: 0 / 454.4 MB, free: 9.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006546/0.2529, allocations: 1.709 MB / 456.2 MB, free: 7.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/0.2531, allocations: 281.7 kB / 456.4 MB, free: 7.211 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007549/0.2538, allocations: 0.5497 MB / 457 MB, free: 6.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/0.2539, allocations: 45.7 kB / 457 MB, free: 6.602 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003846/0.2543, allocations: 494.6 kB / 457.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/0.2545, allocations: 256.4 kB / 457.8 MB, free: 5.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003224/0.2549, allocations: 206.7 kB / 458 MB, free: 5.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.255, allocations: 390.7 kB / 458.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007869/0.2558, allocations: 326.4 kB / 458.7 MB, free: 4.938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009909/0.2568, allocations: 0.5605 MB / 459.2 MB, free: 4.281 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.01843/0.2753, allocations: 3.638 MB / 462.9 MB, free: 488 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.2753, allocations: 0 / 462.9 MB, free: 488 kB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002799/0.2781, allocations: 1.209 MB / 464.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.335e-05/0.2782, allocations: 93.09 kB / 464.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.2782, allocations: 4 kB / 464.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004917/0.2787, allocations: 92.97 kB / 464.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.2799, allocations: 251.6 kB / 464.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.2815, allocations: 1.593 MB / 466.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009528/0.2825, allocations: 111 kB / 466.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.502e-05/0.2826, allocations: 59.97 kB / 466.3 MB, free: 12.88 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.0005987/0.2832, allocations: 363.9 kB / 466.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.2834, allocations: 83.05 kB / 466.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002705/0.2861, allocations: 1.257 MB / 468 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.2861, allocations: 12 kB / 468 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.2861, allocations: 0 / 468 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.2861, allocations: 3.984 kB / 468 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003973/0.2901, allocations: 2.267 MB / 470.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.2901, allocations: 0 / 470.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006177/0.2907, allocations: 131.8 kB / 470.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008429/0.2916, allocations: 342.1 kB / 470.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.698e-05/0.2917, allocations: 35.95 kB / 470.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.2931, allocations: 0.8935 MB / 471.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2931, allocations: 3.938 kB / 471.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003248/0.2963, allocations: 1.638 MB / 473.3 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003736/0.2967, allocations: 231.9 kB / 473.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.2969, allocations: 24 kB / 473.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006843/0.2976, allocations: 55.88 kB / 473.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.2977, allocations: 68.44 kB / 473.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.997e-05/0.2978, allocations: 44.03 kB / 473.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005/0.2983, allocations: 386.8 kB / 474.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2983, allocations: 0 / 474.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001056/0.2994, allocations: 347 kB / 474.4 MB, free: 4.484 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.0007497/0.3001, allocations: 367.7 kB / 474.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002857/0.303, allocations: 1.19 MB / 475.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.303, allocations: 0 / 475.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.3042, allocations: 0.6624 MB / 476.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008757/0.3051, allocations: 142.2 kB / 476.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.3085, allocations: 1.83 MB / 478.6 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005836/0.3091, allocations: 1.014 MB / 479.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/0.3094, allocations: 91.38 kB / 479.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3094, allocations: 0 / 479.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Templates: time 0.02361/0.333, allocations: 17.19 MB / 496.9 MB, free: 13.94 MB / 366.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)