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.02963/0.02963, allocations: 5.392 MB / 20.67 MB, free: 1.652 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.0007459/0.0007461, allocations: 95.72 kB / 22.65 MB, free: 432 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.0008376/0.0008378, allocations: 187.6 kB / 24.75 MB, free: 1.824 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.337/1.337, allocations: 223.3 MB / 250 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009019/0.009019, allocations: 2.312 MB / 304.6 MB, free: 3.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004503/0.0004503, allocations: 12 kB / 372.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09988/0.1003, allocations: 52.21 MB / 424.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_2016): time 0.1908/0.2912, allocations: 6.245 MB / 430.8 MB, free: 38.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004568/0.2958, allocations: 3.066 MB / 433.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005773/0.2964, allocations: 18.03 kB / 433.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009745/0.2974, allocations: 412.5 kB / 434.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001741/0.2991, allocations: 0.7635 MB / 435 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.3005, allocations: 489.6 kB / 435.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00113/0.3016, allocations: 1.285 MB / 436.8 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001975/0.3036, allocations: 1.401 MB / 438.2 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005097/0.3041, allocations: 457.5 kB / 438.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006005/0.3048, allocations: 0.6061 MB / 439.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.3049, allocations: 58.22 kB / 439.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006585/0.3055, allocations: 347.5 kB / 439.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.3057, allocations: 205.6 kB / 439.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004424/0.3062, allocations: 0.5561 MB / 440.4 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.3073, allocations: 1.63 MB / 442 MB, free: 35.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3073, allocations: 0 / 442 MB, free: 35.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3074, allocations: 0 / 442 MB, free: 35.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.3074, allocations: 1.5 kB / 442 MB, free: 35.27 MB / 350.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.003533/0.3109, allocations: 1.546 MB / 443.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.311, allocations: 9.719 kB / 443.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001973/0.3129, allocations: 370.2 kB / 444 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.3143, allocations: 0.7686 MB / 444.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.55e-05/0.3144, allocations: 80.44 kB / 444.8 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.3145, allocations: 106.1 kB / 444.9 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.3165, allocations: 1.177 MB / 446.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.3165, allocations: 3.328 kB / 446.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.3166, allocations: 46.09 kB / 446.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.3167, allocations: 30.09 kB / 446.2 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.3186, allocations: 1.04 MB / 447.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005424/0.324, allocations: 4.414 MB / 451.6 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/0.3264, allocations: 1.785 MB / 453.4 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006607/0.3271, allocations: 368.2 kB / 453.8 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.3272, allocations: 173.9 kB / 453.9 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008016/0.3281, allocations: 0.5616 MB / 454.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.665e-06/0.3281, allocations: 0 / 454.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005621/0.3337, allocations: 1.742 MB / 456.2 MB, free: 27.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/0.3338, allocations: 284.8 kB / 456.5 MB, free: 27.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.3343, allocations: 0.5554 MB / 457.1 MB, free: 27.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.449e-05/0.3344, allocations: 52 kB / 457.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.3347, allocations: 489.7 kB / 457.6 MB, free: 26.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.3348, allocations: 259.8 kB / 457.9 MB, free: 26.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.3349, allocations: 90.33 kB / 457.9 MB, free: 26.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.95e-05/0.335, allocations: 383.3 kB / 458.3 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006644/0.3357, allocations: 330.4 kB / 458.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007402/0.3365, allocations: 0.5738 MB / 459.2 MB, free: 25.8 MB / 350.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.01697/0.3534, allocations: 3.692 MB / 462.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.3535, allocations: 3.125 kB / 462.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002256/0.3557, allocations: 1.22 MB / 464.1 MB, free: 23.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.461e-05/0.3558, allocations: 96.8 kB / 464.2 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.3558, allocations: 6.25 kB / 464.2 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/0.3562, allocations: 89.67 kB / 464.3 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.3573, allocations: 254.8 kB / 464.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.3584, allocations: 1.479 MB / 466 MB, free: 22.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000842/0.3592, allocations: 114.1 kB / 466.2 MB, free: 22.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.118e-05/0.3593, allocations: 52.48 kB / 466.2 MB, free: 22.29 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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.0004755/0.3598, allocations: 367.5 kB / 466.6 MB, free: 21.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.3599, allocations: 76.22 kB / 466.6 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002271/0.3622, allocations: 1.268 MB / 467.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.3622, allocations: 16.69 kB / 467.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3622, allocations: 3.328 kB / 467.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.3623, allocations: 3.469 kB / 467.9 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003248/0.3655, allocations: 2.282 MB / 470.2 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3655, allocations: 6.156 kB / 470.2 MB, free: 20.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.3661, allocations: 130.6 kB / 470.3 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007691/0.3669, allocations: 343 kB / 470.7 MB, free: 20.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.691e-05/0.367, allocations: 31.39 kB / 470.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.3681, allocations: 0.9072 MB / 471.6 MB, free: 19.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3681, allocations: 6.172 kB / 471.6 MB, free: 19.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002983/0.3711, allocations: 1.649 MB / 473.3 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003374/0.3715, allocations: 240.4 kB / 473.5 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.3716, allocations: 24.12 kB / 473.5 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006847/0.3723, allocations: 59.56 kB / 473.6 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.3724, allocations: 58.52 kB / 473.6 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/0.3725, allocations: 39.52 kB / 473.7 MB, free: 18.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005256/0.3731, allocations: 391.8 kB / 474.1 MB, free: 18.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.3731, allocations: 0 / 474.1 MB, free: 18.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001094/0.3742, allocations: 350.5 kB / 474.4 MB, free: 18.13 MB / 350.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.000671/0.3748, allocations: 352.8 kB / 474.8 MB, free: 17.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.3769, allocations: 1.17 MB / 475.9 MB, free: 17.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3769, allocations: 1.125 kB / 475.9 MB, free: 17.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.3779, allocations: 0.6575 MB / 476.6 MB, free: 17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008652/0.3788, allocations: 139.5 kB / 476.7 MB, free: 16.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.3822, allocations: 2.348 MB / 479.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005765/0.3828, allocations: 1.012 MB / 480.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005672/0.3834, allocations: 124.9 kB / 480.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002363/0.3836, allocations: 87.89 kB / 480.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3836, allocations: 0 / 480.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of Templates: time 0.02042/0.4041, allocations: 12.03 MB / 492.3 MB, free: 11.79 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_2016.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: